Skip to content

Commit

Permalink
Remove disconnect (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Mar 10, 2022
1 parent 1f0c6ac commit fe71f05
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/custom/components/AccountDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { groupActivitiesByDay, useMultipleActivityDescriptors } from 'hooks/useR
import { CreationDateText } from 'components/AccountDetails/Transaction/styled'
import { ExternalLink } from 'theme'
import { getExplorerAddressLink } from 'utils/explorer'
import { gnosisSafe } from 'connectors'

const DATE_FORMAT_OPTION: Intl.DateTimeFormatOptions = {
dateStyle: 'long',
Expand Down Expand Up @@ -193,14 +194,16 @@ export default function AccountDetails({
<AccountGroupingRow>
<AccountControl>
<WalletSecondaryActions>
{connector !== injected && connector !== walletlink && (
{connector !== injected && connector !== walletlink && connector !== gnosisSafe && (
<WalletAction onClick={handleDisconnectClick}>
<Trans>Disconnect</Trans>
</WalletAction>
)}
<WalletAction onClick={toggleWalletModal}>
<Trans>Change Wallet</Trans>
</WalletAction>
{connector !== gnosisSafe && (
<WalletAction onClick={toggleWalletModal}>
<Trans>Change Wallet</Trans>
</WalletAction>
)}
{chainId && account && (
<AddressLink
hasENS={!!ENSName}
Expand Down

0 comments on commit fe71f05

Please sign in to comment.