aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/inputs/token_amount_input.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-18 01:54:32 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-18 04:04:39 +0800
commit5bc83fceaa3c281e45af0f30ace67643554830c8 (patch)
treebfdf27f448b4b0368c2a2945f47303eaa4a57289 /packages/website/ts/components/inputs/token_amount_input.tsx
parente7fd501200f37581fa0b97854fc0914246d3e95c (diff)
downloaddexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar.gz
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar.bz2
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar.lz
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar.xz
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.tar.zst
dexon-sol-tools-5bc83fceaa3c281e45af0f30ace67643554830c8.zip
Refactor code in response to CR feedback
Diffstat (limited to 'packages/website/ts/components/inputs/token_amount_input.tsx')
-rw-r--r--packages/website/ts/components/inputs/token_amount_input.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/inputs/token_amount_input.tsx b/packages/website/ts/components/inputs/token_amount_input.tsx
index 3ff2c5440..a5fd86f6c 100644
--- a/packages/website/ts/components/inputs/token_amount_input.tsx
+++ b/packages/website/ts/components/inputs/token_amount_input.tsx
@@ -6,7 +6,7 @@ import * as React from 'react';
import { Link } from 'react-router-dom';
import { Blockchain } from 'ts/blockchain';
import { BalanceBoundedInput } from 'ts/components/inputs/balance_bounded_input';
-import { InputErrMsg, Token, ValidatedBigNumberCallback, WebsitePaths } from 'ts/types';
+import { Token, ValidatedBigNumberCallback, WebsitePaths } from 'ts/types';
interface TokenAmountInputProps {
userAddress: string;
@@ -107,7 +107,7 @@ export class TokenAmountInput extends React.Component<TokenAmountInputProps, Tok
}
this.props.onChange(isValid, baseUnitAmount);
}
- private _validate(amount: BigNumber): InputErrMsg {
+ private _validate(amount: BigNumber): React.ReactNode {
if (this.props.shouldCheckAllowance && amount.gt(this.state.allowance)) {
return (
<span>