feat: add states to the erc20 input for no assets or only 1 asset

This commit is contained in:
fragosti
2018-11-01 13:10:51 -07:00
parent 3f918622bc
commit b55ba3a318
7 changed files with 50 additions and 24 deletions

View File

@@ -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 {