@@ -7,14 +7,13 @@ import { SearchIcon, WalletMinimalIcon } from "lucide-react";
77import { useCallback , useMemo , useState } from "react" ;
88import { toast } from "sonner" ;
99import { match , P } from "ts-pattern" ;
10- import { showModal , useModal } from "../../hooks/use-modal" ;
10+ import { useModal } from "../../hooks/use-modal" ;
1111import { useSwapKit } from "../../swapkit-context" ;
1212import { Button } from "../ui/button" ;
1313import { Dialog , DialogContent , DialogFooter , DialogHeader , DialogTitle } from "../ui/dialog" ;
1414import { Input } from "../ui/input" ;
1515import { SWAPKIT_WIDGET_TOASTER_ID } from "../ui/sonner" ;
1616import { WalletIcon } from "../wallet-icon" ;
17- import { GlobalKeystoreDialog } from "./wallet-connect-keystore-dialog" ;
1817
1918const WALLET_GROUPS = {
2019 "Browser Extensions" : [
@@ -295,20 +294,7 @@ function WalletConnectButton({ wallet }: { wallet: WalletOption }) {
295294
296295 const handleButtonClick = useCallback ( async ( ) => {
297296 try {
298- if ( wallet === WalletOption . KEYSTORE ) {
299- return void showModal ( < GlobalKeystoreDialog /> ) ;
300- }
301-
302- await connectWallet ( wallet , [
303- Chain . Cosmos ,
304- Chain . Maya ,
305- Chain . THORChain ,
306- Chain . Kujira ,
307- Chain . Bitcoin ,
308- Chain . Ethereum ,
309- Chain . Avalanche ,
310- Chain . BinanceSmartChain ,
311- ] as Chain [ ] ) ;
297+ await connectWallet ( wallet , [ Chain . Cosmos , Chain . Maya , Chain . THORChain , Chain . Kujira ] as Chain [ ] ) ;
312298
313299 modal . resolve ( { confirmed : true , data : wallet } ) ;
314300 } catch {
0 commit comments