From b3bd39f6f030231f829a11e7bd139ab8d53145ff Mon Sep 17 00:00:00 2001 From: ALi Josheghani Date: Tue, 1 Oct 2024 00:10:53 +0330 Subject: [PATCH] (feat) add custom handle close prop for MuiModal --- src/common/modal/index.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/common/modal/index.tsx b/src/common/modal/index.tsx index 1f1b44f..237d398 100644 --- a/src/common/modal/index.tsx +++ b/src/common/modal/index.tsx @@ -13,6 +13,7 @@ export default function MuiModal({ submitText, submitOnClick, disabled, + handleCloseCustom, children, }: MuiModalProps) { const [open, setOpen] = useState(false); @@ -31,7 +32,7 @@ export default function MuiModal({
{nameService} )} - @@ -61,9 +62,13 @@ export default function MuiModal({ submitText ? "justify-end" : "justify-center" } items-center gap-2 md:gap-3 text-lg md:text-xl`} > - + {submitText && ( -