diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 840bd93222..dbece88e22 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -11,8 +11,8 @@ import { useUserHasSubmittedClaim } from 'state/transactions/hooks' import { useDarkModeManager } from 'state/user/hooks' import { useETHBalances } from 'state/wallet/hooks' import styled from 'styled-components/macro' -import Logo from '../../assets/svg/logo.svg' -import LogoDark from '../../assets/svg/logo_white.svg' +import { ReactComponent as Logo } from '../../assets/svg/logo.svg' +import { ReactComponent as LogoDark } from '../../assets/svg/logo_white.svg' import { useActiveWeb3React } from '../../hooks/web3' import { ExternalLink, TYPE } from '../../theme' import ClaimModal from '../claim/ClaimModal' @@ -264,7 +264,11 @@ export default function Header() { <UniIcon> - <img width={'24px'} src={darkMode ? LogoDark : Logo} alt="logo" /> + {darkMode ? ( + <LogoDark width="24px" height="100%" title="logo" /> + ) : ( + <Logo width="24px" height="100%" title="logo" /> + )} </UniIcon> @@ -284,7 +288,7 @@ export default function Header() { > Pool - {chainId && chainId === SupportedChainId.MAINNET && ( + {(!chainId || chainId === SupportedChainId.MAINNET) && ( Vote diff --git a/src/components/Web3Status/index.tsx b/src/components/Web3Status/index.tsx index e58ee0f0aa..7b8290cd2f 100644 --- a/src/components/Web3Status/index.tsx +++ b/src/components/Web3Status/index.tsx @@ -235,14 +235,12 @@ export default function Web3Status() { const pending = sortedRecentTransactions.filter((tx) => !tx.receipt).map((tx) => tx.hash) const confirmed = sortedRecentTransactions.filter((tx) => tx.receipt).map((tx) => tx.hash) - if (!contextNetwork.active && !active) { - return null - } - return ( <> - + {(contextNetwork.active || active) && ( + + )} ) }