fix: remove warning icon on search (#4564)

init
This commit is contained in:
lynn 2022-09-02 14:55:50 -04:00 committed by GitHub
parent b46fa27084
commit 6fe5d4363d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ import { putCommas } from 'nft/utils/putCommas'
import { useCallback, useEffect, useState } from 'react' import { useCallback, useEffect, useState } from 'react'
import { Link, useNavigate } from 'react-router-dom' import { Link, useNavigate } from 'react-router-dom'
import { TokenWarningRedIcon, VerifiedIcon } from '../../nft/components/icons' import { VerifiedIcon } from '../../nft/components/icons'
import * as styles from './SearchBar.css' import * as styles from './SearchBar.css'
interface CollectionRowProps { interface CollectionRowProps {
@ -151,11 +151,7 @@ export const TokenRow = ({ token, isHovered, setHoveredIndex, toggleOpen, index
<Column className={styles.suggestionPrimaryContainer}> <Column className={styles.suggestionPrimaryContainer}>
<Row gap="4" width="full"> <Row gap="4" width="full">
<Box className={styles.primaryText}>{token.name}</Box> <Box className={styles.primaryText}>{token.name}</Box>
{token.onDefaultList ? ( {token.onDefaultList && <VerifiedIcon className={styles.suggestionIcon} />}
<VerifiedIcon className={styles.suggestionIcon} />
) : (
<TokenWarningRedIcon className={styles.suggestionIcon} />
)}
</Row> </Row>
<Box className={styles.secondaryText}>{token.symbol}</Box> <Box className={styles.secondaryText}>{token.symbol}</Box>
</Column> </Column>