diff options
author | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:01:40 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:01:40 +0800 |
commit | 586a8ba8e7427eab2fdc974dab6483105b7cd5b6 (patch) | |
tree | 84f6a59cefefee950ca10356f3a79f42071c3451 /packages/instant/src/components/erc20_asset_amount_input.tsx | |
parent | 1ddf1087dd327b2ef35165518ee91eb457b84174 (diff) | |
download | dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.gz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.bz2 dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.lz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.xz dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.tar.zst dexon-sol-tools-586a8ba8e7427eab2fdc974dab6483105b7cd5b6.zip |
feat: use PureComponent instead of Component
Diffstat (limited to 'packages/instant/src/components/erc20_asset_amount_input.tsx')
-rw-r--r-- | packages/instant/src/components/erc20_asset_amount_input.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/erc20_asset_amount_input.tsx b/packages/instant/src/components/erc20_asset_amount_input.tsx index 4da82eb73..0418f9165 100644 --- a/packages/instant/src/components/erc20_asset_amount_input.tsx +++ b/packages/instant/src/components/erc20_asset_amount_input.tsx @@ -31,7 +31,7 @@ export interface ERC20AssetAmountInputState { currentFontSizePx: number; } -export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInputProps, ERC20AssetAmountInputState> { +export class ERC20AssetAmountInput extends React.PureComponent<ERC20AssetAmountInputProps, ERC20AssetAmountInputState> { public static defaultProps = { onChange: util.boundNoop, isDisabled: false, |