Skip to content

Commit

Permalink
refactor: Show all provider buttons for all chains
Browse files Browse the repository at this point in the history
  • Loading branch information
gmolki committed Oct 7, 2024
1 parent 94a1e63 commit 8396aa7
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/hooks/pages/useHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function useHeader(): UseHeaderReturn {

// --------------------

const EVMWallets: Wallet[] = useMemo(
const wallets: Wallet[] = useMemo(
() => [
{
id: ProviderId.Metamask,
Expand All @@ -77,12 +77,6 @@ export function useHeader(): UseHeaderReturn {
icon: 'walletConnect',
color: 'main0',
},
],
[],
)

const solanaWallets: Wallet[] = useMemo(
() => [
{
id: ProviderId.Phantom,
name: 'Phantom',
Expand All @@ -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],
)

// --------------------
Expand Down

0 comments on commit 8396aa7

Please sign in to comment.