From 80e899ef27f7cb8c24dd1d89ee589a103b58eabe Mon Sep 17 00:00:00 2001 From: tanmen Date: Sun, 22 Oct 2023 02:44:17 +0900 Subject: [PATCH] fix(modal): wait modal action --- src/modals/Modal/Modal.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modals/Modal/Modal.tsx b/src/modals/Modal/Modal.tsx index 74a39bd8..b68efc54 100644 --- a/src/modals/Modal/Modal.tsx +++ b/src/modals/Modal/Modal.tsx @@ -19,12 +19,15 @@ export const Modal: FC = ({title, text, actions, onClose}) => { {text} - {actions && onClose()}> - {actions.map(({text, onClick,...props}) => )} + {actions && + {actions.map(({text, onClick, ...props}) => + )} } ; };