diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-16 08:06:28 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-16 08:06:28 +0800 |
commit | ac3bfdfe5ffc4fc49b88fbad062e1d562987e728 (patch) | |
tree | f6e4f4bfcfcecc2c28061ec4b84940f13ab71d3e /packages/instant/src/components/asset_amount_input.tsx | |
parent | fcf345144835cf142da2cbca544151100791700f (diff) | |
download | dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.gz dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.bz2 dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.lz dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.xz dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.zst dexon-0x-contracts-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.zip |
Put boundNoop in a util file
Diffstat (limited to 'packages/instant/src/components/asset_amount_input.tsx')
-rw-r--r-- | packages/instant/src/components/asset_amount_input.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/components/asset_amount_input.tsx b/packages/instant/src/components/asset_amount_input.tsx index 72bcfb8fb..7c6b03ee9 100644 --- a/packages/instant/src/components/asset_amount_input.tsx +++ b/packages/instant/src/components/asset_amount_input.tsx @@ -5,6 +5,7 @@ import * as React from 'react'; import { assetMetaData } from '../data/asset_meta_data'; import { ColorOption } from '../style/theme'; +import { util } from '../util/util'; import { AmountInput, AmountInputProps } from './amount_input'; import { Container, Text } from './ui'; @@ -16,7 +17,7 @@ export interface AssetAmountInputProps extends AmountInputProps { export class AssetAmountInput extends React.Component<AssetAmountInputProps> { public static defaultProps = { - onChange: _.noop.bind(_), + onChange: util.boundNoop, }; public render(): React.ReactNode { const { assetData, onChange, ...rest } = this.props; |