diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 04:10:51 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 04:10:51 +0800 |
commit | b55ba3a31823699fa2460fad6fd22b913c38c946 (patch) | |
tree | a3ce34b73187518f106894f9eeb35d6a56f065cf /packages/instant/src/components/erc20_token_selector.tsx | |
parent | 3f918622bcce21ba104e0f13e71247796345ab0f (diff) | |
download | dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.gz dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.bz2 dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.lz dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.xz dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.zst dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.zip |
feat: add states to the erc20 input for no assets or only 1 asset
Diffstat (limited to 'packages/instant/src/components/erc20_token_selector.tsx')
-rw-r--r-- | packages/instant/src/components/erc20_token_selector.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/components/erc20_token_selector.tsx b/packages/instant/src/components/erc20_token_selector.tsx index a98176e9b..12051b382 100644 --- a/packages/instant/src/components/erc20_token_selector.tsx +++ b/packages/instant/src/components/erc20_token_selector.tsx @@ -11,7 +11,9 @@ export interface ERC20TokenSelectorProps { } export const ERC20TokenSelector: React.StatelessComponent<ERC20TokenSelectorProps> = ({ tokens, onTokenSelect }) => ( - <Container>{_.map(tokens, token => <TokenSelectorRow token={token} onClick={onTokenSelect} />)}</Container> + <Container> + {_.map(tokens, token => <TokenSelectorRow key={token.assetData} token={token} onClick={onTokenSelect} />)} + </Container> ); interface TokenSelectorRowProps { |