From 8183f2edde66f0d884ef00a97df8d5a86e8156d0 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 30 Jul 2020 23:37:27 +0200 Subject: [PATCH] refactor web3modal options --- src/components/molecules/Wallet/Account.tsx | 8 +--- src/components/molecules/Wallet/Details.tsx | 4 +- src/helpers/wrapRootElement.tsx | 5 ++- src/utils/wallet.ts | 48 +++++++++------------ 4 files changed, 29 insertions(+), 36 deletions(-) diff --git a/src/components/molecules/Wallet/Account.tsx b/src/components/molecules/Wallet/Account.tsx index 203953bd9..fd277021d 100644 --- a/src/components/molecules/Wallet/Account.tsx +++ b/src/components/molecules/Wallet/Account.tsx @@ -4,11 +4,7 @@ import { useOcean } from '@oceanprotocol/react' import { toDataUrl } from 'ethereum-blockies' import { ReactComponent as Caret } from '../../../images/caret.svg' import Status from '../../atoms/Status' -import { - accountTruncate, - connectWallet, - isCorrectNetwork -} from '../../../utils/wallet' +import { accountTruncate, isCorrectNetwork } from '../../../utils/wallet' const Blockies = ({ account }: { account: string | undefined }) => { if (!account) return null @@ -44,7 +40,7 @@ const Account = React.forwardRef((props, ref: any) => { ) : (