diff --git a/striker-ui/components/ConfirmDialog.tsx b/striker-ui/components/ConfirmDialog.tsx index 2c365eaf..a719e3f6 100644 --- a/striker-ui/components/ConfirmDialog.tsx +++ b/striker-ui/components/ConfirmDialog.tsx @@ -1,4 +1,4 @@ -import { MouseEventHandler } from 'react'; +import { MouseEventHandler, ReactNode } from 'react'; import { Box, ButtonProps, Dialog, DialogProps } from '@mui/material'; import ContainedButton from './ContainedButton'; @@ -8,7 +8,7 @@ import { BodyText, HeaderText } from './Text'; type ConfirmDialogProps = { actionCancelText?: string; actionProceedText: string; - contentText: string; + content: ReactNode | string; dialogProps: DialogProps; onCancel: MouseEventHandler; onProceed: MouseEventHandler; @@ -25,7 +25,7 @@ const ConfirmDialog = ( { actionCancelText, actionProceedText, - contentText, + content, dialogProps: { open }, onCancel, onProceed, @@ -41,7 +41,9 @@ const ConfirmDialog = ( - + + {typeof content === 'string' ? : content} +