From 32dda2fcd1f28e94d55aa5e5d6401da0c6973441 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 10 Jun 2024 14:09:29 -0300 Subject: [PATCH] Fixed submit submitting baseModal, fixed state problem on Edit Node Modal when closing and opening --- src/frontend/src/modals/baseModal/index.tsx | 4 +- .../src/modals/editNodeModal/index.tsx | 39 ++++++++++--------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/frontend/src/modals/baseModal/index.tsx b/src/frontend/src/modals/baseModal/index.tsx index 8c9386d79..3ee7788af 100644 --- a/src/frontend/src/modals/baseModal/index.tsx +++ b/src/frontend/src/modals/baseModal/index.tsx @@ -86,6 +86,7 @@ const Footer: React.FC<{ loading?: boolean; disabled?: boolean; dataTestId?: string; + onClick?: () => void; }; }> = ({ children, submit }) => { return ( @@ -101,7 +102,8 @@ const Footer: React.FC<{