diff --git a/src/components/SearchModal/CommonBases.tsx b/src/components/SearchModal/CommonBases.tsx index c2941639429..c299da9f8dc 100644 --- a/src/components/SearchModal/CommonBases.tsx +++ b/src/components/SearchModal/CommonBases.tsx @@ -5,6 +5,7 @@ import CurrencyLogo from 'components/CurrencyLogo' import QuestionHelper from 'components/QuestionHelper' import { AutoRow } from 'components/Row' import { COMMON_BASES } from 'constants/routing' +import { useTokenInfoFromActiveList } from 'hooks/useTokenInfoFromActiveList' import { Text } from 'rebass' import styled from 'styled-components/macro' import { currencyId } from 'utils/currencyId' @@ -60,7 +61,7 @@ export default function CommonBases({ disable={isSelected} key={currencyId(currency)} > - + {currency.symbol} @@ -71,3 +72,10 @@ export default function CommonBases({ ) : null } + +/** helper component to retrieve a base currency from the active token lists */ +function CurrencyLogoFromList({ currency }: { currency: Currency }) { + const token = useTokenInfoFromActiveList(currency) + + return +}