From a295747cb68ef9c3a366ff5a5aecb6f0a82caeb3 Mon Sep 17 00:00:00 2001 From: nicosampler Date: Wed, 29 Jul 2020 16:16:29 -0300 Subject: [PATCH] Wallet details --- .../ProviderDetails/UserDetails.tsx | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/components/Header/components/ProviderDetails/UserDetails.tsx b/src/components/Header/components/ProviderDetails/UserDetails.tsx index adb5c035..904fe15d 100644 --- a/src/components/Header/components/ProviderDetails/UserDetails.tsx +++ b/src/components/Header/components/ProviderDetails/UserDetails.tsx @@ -3,9 +3,8 @@ import Dot from '@material-ui/icons/FiberManualRecord' import classNames from 'classnames' import * as React from 'react' import { Identicon } from '@gnosis.pm/safe-react-components' +import { AddressInfo } from '@gnosis.pm/safe-react-components' -import CopyBtn from 'src/components/CopyBtn' -import EtherscanBtn from 'src/components/EtherscanBtn' import CircleDot from 'src/components/Header/components/CircleDot' import Spacer from 'src/components/Spacer' import Block from 'src/components/layout/Block' @@ -14,7 +13,6 @@ import Hairline from 'src/components/layout/Hairline' import Img from 'src/components/layout/Img' import Paragraph from 'src/components/layout/Paragraph' import Row from 'src/components/layout/Row' -import { shortVersionOf } from 'src/logic/wallets/ethAddresses' import { background, connected as connectedBg, lg, md, sm, warning, xs } from 'src/theme/variables' import { upperFirst } from 'src/utils/css' @@ -93,8 +91,6 @@ const styles = () => ({ const UserDetails = ({ classes, connected, network, onDisconnect, openDashboard, provider, userAddress }) => { const status = connected ? 'Connected' : 'Connection error' - const address = userAddress ? shortVersionOf(userAddress, 4) : 'Address not available' - const identiconAddress = userAddress || 'random' const color = connected ? 'primary' : 'warning' return ( @@ -102,20 +98,16 @@ const UserDetails = ({ classes, connected, network, onDisconnect, openDashboard, {connected ? ( - + ) : ( )} - - {address} - - {userAddress && ( - <> - - - + {userAddress ? ( + + ) : ( + 'Address not available' )}