Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Dec 18, 2024
1 parent 3351e3e commit 0c85cd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wallet/components/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ function WalletContent({ children, className }: WalletReact) {
containerRef: walletContainerRef,
} = useWalletContext();

useOutsideClick(walletContainerRef, handleClose);

const { connect, dropdown } = useMemo(() => {
const childrenArray = Children.toArray(children);
return {
Expand All @@ -24,8 +26,6 @@ function WalletContent({ children, className }: WalletReact) {
};
}, [children]);

useOutsideClick(walletContainerRef, handleClose);

return (
<div
ref={walletContainerRef}
Expand All @@ -38,8 +38,8 @@ function WalletContent({ children, className }: WalletReact) {
}

export const Wallet = ({ children, className }: WalletReact) => {
const isMounted = useIsMounted();
const componentTheme = useTheme();
const isMounted = useIsMounted();

// prevents SSR hydration issue
if (!isMounted) {
Expand Down

0 comments on commit 0c85cd8

Please sign in to comment.