From 9c4faca03c5e321db577718548adeff8f142b648 Mon Sep 17 00:00:00 2001 From: Andrei Balanuta <43002968+snurfer0@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:19:31 +0200 Subject: [PATCH 1/4] fix: dialog --- src/components/molecules/modal.tsx | 32 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/components/molecules/modal.tsx b/src/components/molecules/modal.tsx index 03f8b81..5ff78bb 100644 --- a/src/components/molecules/modal.tsx +++ b/src/components/molecules/modal.tsx @@ -13,24 +13,22 @@ interface Props { const Modal = forwardRef( ({ id, title, description, children, actions, onClose }, ref) => { return ( - <> - -
-
- -
- {title &&

{title}

} - {description &&
{description}
} -
{children}
-
{actions}
-
-
- + +
+ + -
- + {title &&

{title}

} + {description &&
{description}
} +
{children}
+
{actions}
+ +
+ +
+
); } ); From 2cde2c05b438e64d6d50eca23c7e6ec0c5cc183c Mon Sep 17 00:00:00 2001 From: Andrei Balanuta <43002968+snurfer0@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:19:36 +0200 Subject: [PATCH 2/4] chore: rm space --- src/components/molecules/theme.controller.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/theme.controller.tsx b/src/components/molecules/theme.controller.tsx index ad0498d..c641983 100644 --- a/src/components/molecules/theme.controller.tsx +++ b/src/components/molecules/theme.controller.tsx @@ -13,7 +13,7 @@ const ThemeController: React.FC = () => { ); }; From a4b1ec1e9011db39be1e1416a28cb018c192d0cc Mon Sep 17 00:00:00 2001 From: Andrei Balanuta <43002968+snurfer0@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:19:40 +0200 Subject: [PATCH 3/4] fix: rename --- src/components/molecules/wallet.connect.button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/wallet.connect.button.tsx b/src/components/molecules/wallet.connect.button.tsx index ab7cd12..7570025 100644 --- a/src/components/molecules/wallet.connect.button.tsx +++ b/src/components/molecules/wallet.connect.button.tsx @@ -8,9 +8,9 @@ import { shortenEthereumAddress } from 'src/helpers/short.address'; import { Button } from '../atoms'; const WalletConnectButton = () => { - const { account, connect } = useWalletContext(); + const { account, connectToWallet } = useWalletContext(); return ( - From 579fd34a6e08236e6a49547ec6712250c4b7fe36 Mon Sep 17 00:00:00 2001 From: Andrei Balanuta <43002968+snurfer0@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:19:46 +0200 Subject: [PATCH 4/4] fix: close dialog --- src/components/templates/fundraisers.template.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/templates/fundraisers.template.tsx b/src/components/templates/fundraisers.template.tsx index 5858aeb..f787c8c 100644 --- a/src/components/templates/fundraisers.template.tsx +++ b/src/components/templates/fundraisers.template.tsx @@ -41,7 +41,11 @@ const FundraisersTemplate: React.FC = () => { }); const closeModal = () => { - setSelectedFundraiser(null); + const modalElement = modalRef.current; + if (modalElement && modalElement.close) { + modalElement.close(); + setSelectedFundraiser(null); + } }; const openModal = () => {