diff --git a/striker-ui/components/ConfirmDialog.tsx b/striker-ui/components/ConfirmDialog.tsx index e2a587f9..5252b248 100644 --- a/striker-ui/components/ConfirmDialog.tsx +++ b/striker-ui/components/ConfirmDialog.tsx @@ -42,6 +42,7 @@ const ConfirmDialog = forwardRef< PaperProps: paperProps = {}, ...restDialogProps } = {}, + disableProceed: isDisableProceed, formContent: isFormContent, loading: isLoading = false, loadingAction: isLoadingAction = false, @@ -60,8 +61,11 @@ const ConfirmDialog = forwardRef< ref, ) => { const { sx: paperSx, ...restPaperProps } = paperProps; - const { sx: proceedButtonSx, ...restProceedButtonProps } = - proceedButtonProps; + const { + disabled: proceedButtonDisabled = isDisableProceed, + sx: proceedButtonSx, + ...restProceedButtonProps + } = proceedButtonProps; const [isOpen, setIsOpen] = useState(openInitially); @@ -142,6 +146,7 @@ const ConfirmDialog = forwardRef< const proceedButtonElement = useMemo( () => ( ; + disableProceed?: boolean; formContent?: boolean; loading?: boolean; loadingAction?: boolean;