Skip to content

Commit

Permalink
Readd select functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Nov 8, 2024
1 parent 2b38b72 commit 776b08a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions centrifuge-react/src/components/WalletProvider/WalletDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ export function WalletDialog({ evmChains: allEvmChains, showAdvancedAccounts, sh
<SelectButton
key={1}
logo={evmChains['1']?.iconUrl ? <Logo icon={evmChains['1'].iconUrl} /> : undefined}
onClick={() => showWallets(1)}
onClick={() => {
showWallets(1)
setStep(2)
}}
active={selectedNetwork === 1}
muted={isMuted(1)}
>
Expand All @@ -135,7 +138,10 @@ export function WalletDialog({ evmChains: allEvmChains, showAdvancedAccounts, sh

<SelectButton
logo={<Logo icon={centrifugeLogo} />}
onClick={() => showWallets('centrifuge')}
onClick={() => {
showWallets('centrifuge')
setStep(2)
}}
active={isCentChainSelected}
muted={isMuted('centrifuge')}
>
Expand All @@ -154,7 +160,10 @@ export function WalletDialog({ evmChains: allEvmChains, showAdvancedAccounts, sh
<SelectButton
key={chainId}
logo={chain.iconUrl ? <Logo icon={chain.iconUrl} /> : undefined}
onClick={() => showWallets(chainId)}
onClick={() => {
showWallets(chainId)
setStep(2)
}}
active={selectedNetwork === chainId}
muted={isMuted(chainId)}
>
Expand Down Expand Up @@ -185,6 +194,7 @@ export function WalletDialog({ evmChains: allEvmChains, showAdvancedAccounts, sh
onClick={() => {
showWallets(selectedNetwork, wallet)
connect(wallet)
setStep(3)
}}
loading={isConnecting && wallet === pendingWallet}
active={selectedWallet === wallet}
Expand Down

0 comments on commit 776b08a

Please sign in to comment.