Skip to content

Commit

Permalink
fix: remove connect wallet btn (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti authored Sep 11, 2024
2 parents 07b3d4e + 95b17ca commit f992759
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AddNetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@ export const AddNetworkButton = () => {
{!isConnected && (
<>
<STooltip title={t('WALLET.connectTooltip')}>
<BlueButton onClick={openConnectModal}>{t('WALLET.connection')} </BlueButton>
<BlueButton onClick={openConnectModal}>{t('CHAIN.addNetwork')} </BlueButton>
</STooltip>
</>
)}

{isConnected && !isNetworkAdded && (
<BlueButton variant='contained' onClick={handleAddNetwork}>
<Icon icon='add' alt='Add' size={24} />
{t('CHAIN.addNetwork')}
</BlueButton>
)}

{isConnected && isNetworkAdded && (
<BlueButton variant='contained' disabled>
{t('CHAIN.networkAdded')}
Expand Down

0 comments on commit f992759

Please sign in to comment.