Skip to content

Commit

Permalink
fix: remove connect wallet btn
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Sep 11, 2024
1 parent 0561e6b commit 95b17ca
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 95b17ca

Please sign in to comment.