From c144e8bbccee3ad79ee0c504f6bf9de159e17270 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Sat, 27 Jul 2024 21:30:32 -0700 Subject: [PATCH] formatting --- src/wallet/components/Wallet.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wallet/components/Wallet.tsx b/src/wallet/components/Wallet.tsx index a98059b879..c760b59d9f 100644 --- a/src/wallet/components/Wallet.tsx +++ b/src/wallet/components/Wallet.tsx @@ -1,4 +1,4 @@ -import { Children, useMemo, useRef, useEffect } from 'react'; +import { Children, useEffect, useMemo, useRef } from 'react'; import type { WalletReact } from '../types'; import { ConnectWallet } from './ConnectWallet'; import { WalletDropdown } from './WalletDropdown'; @@ -18,7 +18,11 @@ const WalletContent = ({ children }: WalletReact) => { useEffect(() => { const handleClickOutside = (event: MouseEvent) => { - if (containerRef.current && !containerRef.current.contains(event.target as Node) && isOpen) { + if ( + containerRef.current && + !containerRef.current.contains(event.target as Node) && + isOpen + ) { setIsOpen(false); } }; @@ -41,4 +45,4 @@ export const Wallet = ({ children }: WalletReact) => { {children} ); -}; \ No newline at end of file +};