Skip to content

Commit b23f833

Browse files
committed
chore: revert WalletConnectButton and keystore dialog changes
1 parent 3780e42 commit b23f833

File tree

2 files changed

+2
-136
lines changed

2 files changed

+2
-136
lines changed

packages/ui/src/react/components/dialogs/wallet-connect-dialog.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ import { SearchIcon, WalletMinimalIcon } from "lucide-react";
77
import { useCallback, useMemo, useState } from "react";
88
import { toast } from "sonner";
99
import { match, P } from "ts-pattern";
10-
import { showModal, useModal } from "../../hooks/use-modal";
10+
import { useModal } from "../../hooks/use-modal";
1111
import { useSwapKit } from "../../swapkit-context";
1212
import { Button } from "../ui/button";
1313
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "../ui/dialog";
1414
import { Input } from "../ui/input";
1515
import { SWAPKIT_WIDGET_TOASTER_ID } from "../ui/sonner";
1616
import { WalletIcon } from "../wallet-icon";
17-
import { GlobalKeystoreDialog } from "./wallet-connect-keystore-dialog";
1817

1918
const 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 {

packages/ui/src/react/components/dialogs/wallet-connect-keystore-dialog.tsx

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)