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/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/amount_input.tsx')
-rw-r--r-- | packages/instant/src/components/amount_input.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/components/amount_input.tsx b/packages/instant/src/components/amount_input.tsx index 5b81a3d68..7644f5f67 100644 --- a/packages/instant/src/components/amount_input.tsx +++ b/packages/instant/src/components/amount_input.tsx @@ -3,6 +3,7 @@ import * as _ from 'lodash'; import * as React from 'react'; import { ColorOption } from '../style/theme'; +import { util } from '../util/util'; import { Container, Input } from './ui'; @@ -15,7 +16,7 @@ export interface AmountInputProps { export class AmountInput extends React.Component<AmountInputProps> { public static defaultProps = { - onChange: _.noop.bind(_), + onChange: util.boundNoop, }; public render(): React.ReactNode { const { fontColor, fontSize, value } = this.props; |