diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-01 02:55:48 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-01 02:55:48 +0800 |
commit | 27258fe3d45b8ffae81b74da43e473ae5905edc1 (patch) | |
tree | f4ebc7107ce10b10ac4b75b758b54d66c6ddd887 /packages/instant/src/components/erc20_asset_amount_input.tsx | |
parent | 91f8487947d7941b508c34d1bfc1e72c0840c33d (diff) | |
download | dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar.gz dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar.bz2 dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar.lz dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar.xz dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.tar.zst dexon-sol-tools-27258fe3d45b8ffae81b74da43e473ae5905edc1.zip |
chore: address PR feedback
Diffstat (limited to 'packages/instant/src/components/erc20_asset_amount_input.tsx')
-rw-r--r-- | packages/instant/src/components/erc20_asset_amount_input.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/src/components/erc20_asset_amount_input.tsx b/packages/instant/src/components/erc20_asset_amount_input.tsx index bed1b3b4e..b1fec6405 100644 --- a/packages/instant/src/components/erc20_asset_amount_input.tsx +++ b/packages/instant/src/components/erc20_asset_amount_input.tsx @@ -15,7 +15,7 @@ export interface ERC20AssetAmountInputProps { asset?: ERC20Asset; value?: BigNumberInput; onChange: (value?: BigNumberInput, asset?: ERC20Asset) => void; - onSymbolClick?: (asset?: ERC20Asset) => void; + onSelectAssetClick?: (asset?: ERC20Asset) => void; startingFontSizePx: number; fontColor?: ColorOption; isDisabled: boolean; @@ -40,7 +40,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput const { asset } = this.props; return ( <Container whiteSpace="nowrap"> - {!_.isUndefined(asset) ? this._renderContentForAsset(asset) : this._renderBackupContent()} + {_.isUndefined(asset) ? this._renderBackupContent() : this._renderContentForAsset(asset)} </Container> ); } @@ -111,8 +111,8 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput }); }; private readonly _handleSymbolClick = () => { - if (this.props.onSymbolClick) { - this.props.onSymbolClick(this.props.asset); + if (this.props.onSelectAssetClick) { + this.props.onSelectAssetClick(this.props.asset); } }; // For assets with symbols of different length, |