From 013ed38d0e9623ca2914514518181ab81dc4a82c Mon Sep 17 00:00:00 2001 From: simke9445 Date: Thu, 21 Mar 2024 22:29:46 +0100 Subject: [PATCH] fix connect wallet dialog bug --- .../dialog/connect-wallet/ConnectWalletDialog.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/warp-protocol/src/components/dialog/connect-wallet/ConnectWalletDialog.tsx b/apps/warp-protocol/src/components/dialog/connect-wallet/ConnectWalletDialog.tsx index 7602168..0e57e8a 100644 --- a/apps/warp-protocol/src/components/dialog/connect-wallet/ConnectWalletDialog.tsx +++ b/apps/warp-protocol/src/components/dialog/connect-wallet/ConnectWalletDialog.tsx @@ -1,6 +1,5 @@ import { useWallet } from '@terra-money/wallet-kit'; import { Button, Text } from 'components/primitives'; -import { useState } from 'react'; import { useDialog, DialogProps } from '@terra-money/apps/hooks'; import { Dialog, DialogBody, DialogHeader } from 'components/dialog'; import styles from './ConnectWalletDialog.module.sass'; @@ -10,15 +9,10 @@ type ConnectWalletDialogProps = { subtitle?: string; }; -// TODO: filter for supported available wallets -// TODO: add wallet connect - export const ConnectWalletDialog = (props: DialogProps) => { const { closeDialog, title, subtitle } = props; const { connect, availableWallets } = useWallet(); - const [loading, setLoading] = useState(false); - return ( closeDialog(undefined, { closeAll: true })} /> @@ -31,12 +25,11 @@ export const ConnectWalletDialog = (props: DialogProps { return (