From 8396aa7ccaa25a27f15ef014b27eed18f524c8be Mon Sep 17 00:00:00 2001 From: gmolki Date: Mon, 7 Oct 2024 18:09:33 +0200 Subject: [PATCH] refactor: Show all provider buttons for all chains --- src/hooks/pages/useHeader.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/hooks/pages/useHeader.ts b/src/hooks/pages/useHeader.ts index 99c22117..5182ab83 100644 --- a/src/hooks/pages/useHeader.ts +++ b/src/hooks/pages/useHeader.ts @@ -63,7 +63,7 @@ export function useHeader(): UseHeaderReturn { // -------------------- - const EVMWallets: Wallet[] = useMemo( + const wallets: Wallet[] = useMemo( () => [ { id: ProviderId.Metamask, @@ -77,12 +77,6 @@ export function useHeader(): UseHeaderReturn { icon: 'walletConnect', color: 'main0', }, - ], - [], - ) - - const solanaWallets: Wallet[] = useMemo( - () => [ { id: ProviderId.Phantom, name: 'Phantom', @@ -99,28 +93,28 @@ export function useHeader(): UseHeaderReturn { id: BlockchainId.ETH, icon: 'ethereum', name: 'Ethereum', - wallets: EVMWallets, + wallets: wallets, }, { id: BlockchainId.AVAX, icon: 'avalanche', name: 'Avalanche', - wallets: EVMWallets, + wallets: wallets, }, { id: BlockchainId.BASE, icon: 'base', name: 'Base', - wallets: EVMWallets, + wallets: wallets, }, { id: BlockchainId.SOL, icon: 'solana', name: 'Solana', - wallets: solanaWallets, + wallets: wallets, }, ], - [EVMWallets, solanaWallets], + [wallets], ) // --------------------