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}
+ +
+ +
+
); } ); 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 = () => { ); }; 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 ( - 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 = () => {