aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-16 08:06:28 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-16 08:06:28 +0800
commitac3bfdfe5ffc4fc49b88fbad062e1d562987e728 (patch)
treef6e4f4bfcfcecc2c28061ec4b84940f13ab71d3e /packages/instant/src/components/buy_button.tsx
parentfcf345144835cf142da2cbca544151100791700f (diff)
downloaddexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.gz
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.bz2
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.lz
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.xz
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.tar.zst
dexon-sol-tools-ac3bfdfe5ffc4fc49b88fbad062e1d562987e728.zip
Put boundNoop in a util file
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r--packages/instant/src/components/buy_button.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index e9466619e..0706817c9 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -4,6 +4,7 @@ import * as React from 'react';
import { ColorOption } from '../style/theme';
import { assetBuyer } from '../util/asset_buyer';
+import { util } from '../util/util';
import { web3Wrapper } from '../util/web3_wrapper';
import { Button, Container, Text } from './ui';
@@ -16,13 +17,11 @@ export interface BuyButtonProps {
text: string;
}
-const boundNoop = _.noop.bind(_);
-
export class BuyButton extends React.Component<BuyButtonProps> {
public static defaultProps = {
- onClick: boundNoop,
- onBuySuccess: boundNoop,
- onBuyFailure: boundNoop,
+ onClick: util.boundNoop,
+ onBuySuccess: util.boundNoop,
+ onBuyFailure: util.boundNoop,
};
public render(): React.ReactNode {
const shouldDisableButton = _.isUndefined(this.props.buyQuote);