Commit 22ce55ec authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: center empty wallet text on Profile Page Mobile (#5770)

center empty wallet text
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent b25da9de
......@@ -10,14 +10,15 @@ const EmptyWalletContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
margin: 190px;
flex: none;
justify-content: center;
margin: 190px 0px;
flex-wrap: wrap;
`
const EmptyWalletText = styled.div`
width: min-content;
white-space: nowrap;
white-space: normal;
margin-top: 12px;
text-align: center;
`
const ExploreNFTsButton = styled.button`
......@@ -37,16 +38,16 @@ const ExploreNFTsButton = styled.button`
`
export const EmptyWalletContent = () => {
const { account } = useWeb3React()
const { account, ENSName } = useWeb3React()
const navigate = useNavigate()
return (
<EmptyWalletContainer>
<EmptyNFTWalletIcon />
<EmptyWalletText className={headlineMedium}>
<Trans>No NFTs in</Trans>&nbsp;{shortenAddress(account ?? '')}
<Trans>No NFTs in</Trans>&nbsp;{ENSName || shortenAddress(account ?? '')}
</EmptyWalletText>
<ExploreNFTsButton data-testid="nft-explore-nfts-button" onClick={() => navigate('/nfts')}>
Explore NFTs
<Trans>Explore NFTs</Trans>
</ExploreNFTsButton>
</EmptyWalletContainer>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment