Commit db9ac38c authored by Jack Short's avatar Jack Short Committed by GitHub

feat: adding suspicious icons to bag rows (#5298)

parent f27d1191
...@@ -4,6 +4,7 @@ import clsx from 'clsx' ...@@ -4,6 +4,7 @@ import clsx from 'clsx'
import { ButtonEmphasis, ButtonSize, ThemeButton } from 'components/Button' import { ButtonEmphasis, ButtonSize, ThemeButton } from 'components/Button'
import { TimedLoader } from 'nft/components/bag/TimedLoader' import { TimedLoader } from 'nft/components/bag/TimedLoader'
import { Box } from 'nft/components/Box' import { Box } from 'nft/components/Box'
import { Suspicious } from 'nft/components/collection/Card'
import { Column, Row } from 'nft/components/Flex' import { Column, Row } from 'nft/components/Flex'
import { import {
ChevronDownBagIcon, ChevronDownBagIcon,
...@@ -126,8 +127,9 @@ export const BagRow = ({ asset, usdPrice, removeAsset, showRemove, grayscale, is ...@@ -126,8 +127,9 @@ export const BagRow = ({ asset, usdPrice, removeAsset, showRemove, grayscale, is
{noImageAvailable && <NoContentContainer />} {noImageAvailable && <NoContentContainer />}
</Box> </Box>
<Column overflow="hidden" width="full" color={grayscale ? 'textSecondary' : 'textPrimary'}> <Column overflow="hidden" width="full" color={grayscale ? 'textSecondary' : 'textPrimary'}>
<Row overflow="hidden" width="full" justifyContent="space-between" whiteSpace="nowrap" gap="16"> <Row overflow="hidden" width="full" whiteSpace="nowrap">
<Box className={styles.assetName}>{asset.name || asset.tokenId}</Box> <Box className={styles.assetName}>{asset.name ?? `#${asset.tokenId}`}</Box>
{asset.susFlag && <Suspicious />}
</Row> </Row>
<Row overflow="hidden" whiteSpace="nowrap" gap="2"> <Row overflow="hidden" whiteSpace="nowrap" gap="2">
<Box className={styles.collectionName}>{asset.collectionName}</Box> <Box className={styles.collectionName}>{asset.collectionName}</Box>
......
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