Skip to content

Commit

Permalink
Hide
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba80-02 committed Dec 24, 2024
1 parent 287bab8 commit fc62872
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/Stats/TokenListItem/TokenListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const TokenListItem: React.FC<IProps> = ({
// const isNegative = priceChange < 0

const isMd = useMediaQuery(theme.breakpoints.down('md'))
const isXs = useMediaQuery(theme.breakpoints.down('xs'))
const isSm = useMediaQuery(theme.breakpoints.down('sm'))

const networkUrl = useMemo(() => {
switch (network) {
Expand Down Expand Up @@ -99,7 +101,15 @@ const TokenListItem: React.FC<IProps> = ({
}}></img>
{isUnknown && <img className={classes.warningIcon} src={icons.warningIcon} />}
</Box>
<Typography>
{!isSm && (
<Typography>
{isXs ? shortenAddress(symbol) : name}
{!isXs && (
<span className={classes.tokenSymbol}>{` (${shortenAddress(symbol)})`}</span>
)}
</Typography>
)}
{/* <Typography>
{!isMd ? (
<>
<span className={classes.tokenName}>{name}</span>
Expand All @@ -108,7 +118,7 @@ const TokenListItem: React.FC<IProps> = ({
) : (
shortenAddress(symbol)
)}
</Typography>
</Typography> */}
<TooltipHover text='Copy token address'>
<FileCopyOutlinedIcon
onClick={copyToClipboard}
Expand Down

0 comments on commit fc62872

Please sign in to comment.