diff --git a/src/constants/wallets.ts b/src/constants/wallets.ts index 4eaccac..cbbbf48 100644 --- a/src/constants/wallets.ts +++ b/src/constants/wallets.ts @@ -92,7 +92,6 @@ export enum WalletType { Rainbow = 'RAINBOW_WALLET', TokenPocket = 'TOKEN_POCKET', TrustWallet = 'TRUST_WALLET', - WalletConnect = 'WALLETCONNECT', WalletConnect2 = 'WALLETCONNECT_2', // TestWallet = 'TEST_WALLET', OtherWallet = 'OTHER_WALLET', @@ -163,6 +162,7 @@ export const wallets: Record = { connectionTypes: [ WalletConnectionType.CoinbaseWalletSdk, WalletConnectionType.InjectedEip1193, + WalletConnectionType.WalletConnect2, WalletConnectionType.WalletConnect1, ], matchesInjectedEip1193: (provider) => provider.isCoinbaseWallet, // provider.selectedProvider?.isCoinbaseWallet, @@ -273,12 +273,6 @@ export const wallets: Record = { icon: WalletConnectIcon, connectionTypes: [WalletConnectionType.WalletConnect2], }, - [WalletType.WalletConnect]: { - type: WalletType.WalletConnect, - stringKey: STRING_KEYS.WALLET_CONNECT, - icon: WalletConnectIcon, - connectionTypes: [WalletConnectionType.WalletConnect1], - }, [WalletType.Keplr]: { type: WalletType.Keplr, stringKey: STRING_KEYS.KEPLR, diff --git a/src/hooks/useDisplayedWallets.ts b/src/hooks/useDisplayedWallets.ts index 2454a4f..0627be9 100644 --- a/src/hooks/useDisplayedWallets.ts +++ b/src/hooks/useDisplayedWallets.ts @@ -2,27 +2,23 @@ import { WalletType } from '@/constants/wallets'; import { isTruthy } from '@/lib/isTruthy'; -import { useSelectedNetwork } from './useSelectedNetwork'; - export const useDisplayedWallets = () => { - const { selectedNetwork } = useSelectedNetwork(); - return [ WalletType.MetaMask, import.meta.env.MODE !== 'production' && WalletType.Keplr, WalletType.WalletConnect2, - WalletType.WalletConnect, - + WalletType.CoinbaseWallet, - - WalletType.ImToken, - WalletType.Rainbow, - WalletType.TrustWallet, - WalletType.HuobiWallet, - WalletType.BitKeep, - WalletType.Coin98, + + // Hide these wallet options until they can be properly tested on mainnet + // WalletType.ImToken, + // WalletType.Rainbow, + // WalletType.TrustWallet, + // WalletType.HuobiWallet, + // WalletType.BitKeep, + // WalletType.Coin98, WalletType.OtherWallet, ].filter(isTruthy);