diff --git a/new-lamassu-admin/src/components/DeleteDialog.js b/new-lamassu-admin/src/components/DeleteDialog.js
index f7b7781e..e5a20f45 100644
--- a/new-lamassu-admin/src/components/DeleteDialog.js
+++ b/new-lamassu-admin/src/components/DeleteDialog.js
@@ -4,6 +4,7 @@ import {
DialogContent,
makeStyles
} from '@material-ui/core'
+// import * as R from 'ramda'
import React from 'react'
import { Button, IconButton } from 'src/components/buttons'
@@ -11,6 +12,8 @@ import { H4, P } from 'src/components/typography'
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
import { spacer } from 'src/styling/variables'
+import ErrorMessage from './ErrorMessage'
+
const useStyles = makeStyles({
content: {
width: 434,
@@ -42,13 +45,15 @@ export const DialogTitle = ({ children, close }) => {
return (
{children}
-
-
-
+ {close && (
+
+
+
+ )}
)
}
@@ -56,18 +61,31 @@ export const DialogTitle = ({ children, close }) => {
export const DeleteDialog = ({
title = 'Confirm Delete',
open = false,
- setDeleteDialog,
onConfirmed,
+ onDismissed,
item = 'item',
- confirmationMessage = `Are you sure you want to delete this ${item}?`
+ confirmationMessage = `Are you sure you want to delete this ${item}?`,
+ errorMessage = ''
}) => {
const classes = useStyles()
return (