diff --git a/striker-ui/hooks/useConfirmDialog.tsx b/striker-ui/hooks/useConfirmDialog.tsx index 8f24f4d9..07e91de6 100644 --- a/striker-ui/hooks/useConfirmDialog.tsx +++ b/striker-ui/hooks/useConfirmDialog.tsx @@ -25,7 +25,12 @@ const useConfirmDialog = ( finishConfirm: (title: ReactNode, message: Message) => void; } => { const { - initial: { actionProceedText = '', content = '', titleText = '' } = {}, + initial: { + actionProceedText = '', + closeOnProceed, + content = '', + titleText = '', + } = {}, } = args; const confirmDialogRef = useRef( @@ -57,8 +62,14 @@ const useConfirmDialog = ( ); const confirmDialog = useMemo( - () => , - [confirmDialogProps], + () => ( + + ), + [closeOnProceed, confirmDialogProps], ); return {