diff --git a/src/components/molecules/Wallet/Details.module.css b/src/components/molecules/Wallet/Details.module.css index cbeb77a4c..056ec9ef4 100644 --- a/src/components/molecules/Wallet/Details.module.css +++ b/src/components/molecules/Wallet/Details.module.css @@ -5,10 +5,6 @@ max-width: 25rem; } -.details > ul { - margin-bottom: calc(var(--spacer) / 4); -} - .balance { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); @@ -29,7 +25,11 @@ border-top: 1px solid var(--brand-grey-lighter); margin-top: calc(var(--spacer) / 2); padding-top: calc(var(--spacer) / 2); - text-align: center; + display: flex; + justify-content: space-between; + align-items: center; + font-size: var(--font-size-small); + color: var(--color-secondary); } .arrow, diff --git a/src/components/molecules/Wallet/Details.tsx b/src/components/molecules/Wallet/Details.tsx index 9ed12e191..8e7185f61 100644 --- a/src/components/molecules/Wallet/Details.tsx +++ b/src/components/molecules/Wallet/Details.tsx @@ -5,9 +5,10 @@ import { useOcean } from '@oceanprotocol/react' import Web3Feedback from './Feedback' import { formatNumber } from '../../../utils' import { connectWallet } from '../../../utils/wallet' +import { getInjectedProviderName } from 'web3modal' export default function Details({ attrs }: { attrs: any }): ReactElement { - const { balance, connect, logout } = useOcean() + const { balance, connect, logout, web3Provider } = useOcean() const oceanBalance = 'Hello Test' return ( @@ -20,12 +21,13 @@ export default function Details({ attrs }: { attrs: any }): ReactElement { ETH {formatNumber(Number(balance))}
  • + {getInjectedProviderName()}