Commit 864a2aef authored by tom's avatar tom

fix token logo link

parent 43ae60b4
...@@ -12,13 +12,13 @@ interface Props { ...@@ -12,13 +12,13 @@ interface Props {
} }
const TokenLogo = ({ hash, name, className }: Props) => { const TokenLogo = ({ hash, name, className }: Props) => {
const logoSrc = appConfig.network.assetsPathname ? ` const logoSrc = appConfig.network.assetsPathname ? [
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/',
${ appConfig.network.assetsPathname } appConfig.network.assetsPathname,
/assets/ '/assets/',
${ hash } hash,
/logo.png '/logo.png',
` : undefined; ].join('') : undefined;
return <Image className={ className } src={ logoSrc } alt={ `${ name || 'token' } logo` } fallback={ <EmptyElement/> }/>; return <Image className={ className } src={ logoSrc } alt={ `${ name || 'token' } logo` } fallback={ <EmptyElement/> }/>;
}; };
......
...@@ -54,7 +54,7 @@ const TxDetailsTokenTransfers = ({ data, txHash }: Props) => { ...@@ -54,7 +54,7 @@ const TxDetailsTokenTransfers = ({ data, txHash }: Props) => {
<NextLink href={ viewAllUrl } passHref> <NextLink href={ viewAllUrl } passHref>
<Link>View all</Link> <Link>View all</Link>
</NextLink> </NextLink>
<Text variant="secondary" as="span" whiteSpace="pre"> (15)</Text> <Text variant="secondary" as="span" whiteSpace="pre"> ({ data.length })</Text>
</GridItem> </GridItem>
</> </>
); );
......
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