aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-05-16 05:56:00 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-05-19 02:35:13 +0800
commit4b343d9dcfab1afbac4904926dfe26e073aef3bc (patch)
treef115fceab97c42673c64ff3eeb2580cfd0b70914 /packages/website
parent7a6a5d75952e8a555fa7f3fc84fdcd26946eea88 (diff)
downloaddexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar.gz
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar.bz2
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar.lz
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar.xz
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.tar.zst
dexon-sol-tools-4b343d9dcfab1afbac4904926dfe26e073aef3bc.zip
Fix token link key
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/relayer_index/relayer_top_tokens.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/website/ts/components/relayer_index/relayer_top_tokens.tsx b/packages/website/ts/components/relayer_index/relayer_top_tokens.tsx
index 03c70c9dd..40ab7bd03 100644
--- a/packages/website/ts/components/relayer_index/relayer_top_tokens.tsx
+++ b/packages/website/ts/components/relayer_index/relayer_top_tokens.tsx
@@ -26,7 +26,14 @@ export const TopTokens: React.StatelessComponent<TopTokensProps> = (props: TopTo
{_.map(props.tokens, (tokenInfo: WebsiteBackendTokenInfo, index: number) => {
const firstItemStyle = { ...styles.tokenLabel, ...styles.followingTokenLabel };
const style = index !== 0 ? firstItemStyle : styles.tokenLabel;
- return <TokenLink tokenInfo={tokenInfo} style={style} networkId={props.networkId} />;
+ return (
+ <TokenLink
+ key={tokenInfo.address}
+ tokenInfo={tokenInfo}
+ style={style}
+ networkId={props.networkId}
+ />
+ );
})}
</div>
);
@@ -56,7 +63,6 @@ class TokenLink extends React.Component<TokenLinkProps, TokenLinkState> {
};
return (
<a
- key={this.props.tokenInfo.address}
href={tokenLinkFromToken(this.props.tokenInfo, this.props.networkId)}
target="_blank"
style={style}