aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-02 04:34:23 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-02 04:34:23 +0800
commit7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493 (patch)
tree89a8405b7255177061610be764d0f4222e23907a /packages/instant
parent9f5f31d39fffa873cedc889b5cf963b294a2dcc6 (diff)
downloaddexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar.gz
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar.bz2
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar.lz
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar.xz
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.tar.zst
dexon-sol-tools-7fc1a88680e85c5ab1a1ef7ba5eb1bc223614493.zip
fix: better name method
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/components/erc20_asset_amount_input.tsx8
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 e222bc576..05b81e93d 100644
--- a/packages/instant/src/components/erc20_asset_amount_input.tsx
+++ b/packages/instant/src/components/erc20_asset_amount_input.tsx
@@ -48,7 +48,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput
private readonly _renderContentForAsset = (asset: ERC20Asset): React.ReactNode => {
const { onChange, ...rest } = this.props;
const amountBorderBottom = this.props.isDisabled ? '' : `1px solid ${transparentWhite}`;
- const onSymbolClick = this._generateSelectAssetClick();
+ const onSymbolClick = this._generateSelectAssetClickHandler();
return (
<React.Fragment>
<Container borderBottom={amountBorderBottom} display="inline-block">
@@ -95,7 +95,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput
fontColor={ColorOption.white}
opacity={0.7}
fontWeight="500"
- onClick={this._generateSelectAssetClick()}
+ onClick={this._generateSelectAssetClickHandler()}
>
{text}
</Text>
@@ -109,7 +109,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput
return null;
}
return (
- <Container cursor="pointer" marginLeft="5px" onClick={this._generateSelectAssetClick()}>
+ <Container cursor="pointer" marginLeft="5px" onClick={this._generateSelectAssetClickHandler()}>
<Icon icon="chevron" width={12} />
</Container>
);
@@ -123,7 +123,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput
});
};
// We don't want to allow opening the token selection panel if there are no assets.
- private readonly _generateSelectAssetClick = (): (() => void) | undefined => {
+ private readonly _generateSelectAssetClickHandler = (): (() => void) | undefined => {
const { numberOfAssetsAvailable } = this.props;
if (_.isUndefined(numberOfAssetsAvailable) || numberOfAssetsAvailable <= 1) {
return undefined;