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` ...@@ -10,14 +10,15 @@ const EmptyWalletContainer = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin: 190px; justify-content: center;
flex: none; margin: 190px 0px;
flex-wrap: wrap;
` `
const EmptyWalletText = styled.div` const EmptyWalletText = styled.div`
width: min-content; white-space: normal;
white-space: nowrap;
margin-top: 12px; margin-top: 12px;
text-align: center;
` `
const ExploreNFTsButton = styled.button` const ExploreNFTsButton = styled.button`
...@@ -37,16 +38,16 @@ const ExploreNFTsButton = styled.button` ...@@ -37,16 +38,16 @@ const ExploreNFTsButton = styled.button`
` `
export const EmptyWalletContent = () => { export const EmptyWalletContent = () => {
const { account } = useWeb3React() const { account, ENSName } = useWeb3React()
const navigate = useNavigate() const navigate = useNavigate()
return ( return (
<EmptyWalletContainer> <EmptyWalletContainer>
<EmptyNFTWalletIcon /> <EmptyNFTWalletIcon />
<EmptyWalletText className={headlineMedium}> <EmptyWalletText className={headlineMedium}>
<Trans>No NFTs in</Trans>&nbsp;{shortenAddress(account ?? '')} <Trans>No NFTs in</Trans>&nbsp;{ENSName || shortenAddress(account ?? '')}
</EmptyWalletText> </EmptyWalletText>
<ExploreNFTsButton data-testid="nft-explore-nfts-button" onClick={() => navigate('/nfts')}> <ExploreNFTsButton data-testid="nft-explore-nfts-button" onClick={() => navigate('/nfts')}>
Explore NFTs <Trans>Explore NFTs</Trans>
</ExploreNFTsButton> </ExploreNFTsButton>
</EmptyWalletContainer> </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