diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-17 08:06:57 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-18 04:04:39 +0800 |
commit | ea0067d99976a572dcd4a4d988f4d33ca083f230 (patch) | |
tree | ce750f48028c76a152f260c84c1dbeb9333a3171 /packages/website/ts/components/inputs/eth_amount_input.tsx | |
parent | ec49ca648027cd82c4488f388e4917a879a71364 (diff) | |
download | dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar.gz dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar.bz2 dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar.lz dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar.xz dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.tar.zst dexon-sol-tools-ea0067d99976a572dcd4a4d988f4d33ca083f230.zip |
Show error messages in the wrapped ether item
Diffstat (limited to 'packages/website/ts/components/inputs/eth_amount_input.tsx')
-rw-r--r-- | packages/website/ts/components/inputs/eth_amount_input.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/website/ts/components/inputs/eth_amount_input.tsx b/packages/website/ts/components/inputs/eth_amount_input.tsx index c3822a80b..862ba25f8 100644 --- a/packages/website/ts/components/inputs/eth_amount_input.tsx +++ b/packages/website/ts/components/inputs/eth_amount_input.tsx @@ -12,6 +12,7 @@ interface EthAmountInputProps { amount?: BigNumber; hintText?: string; onChange: ValidatedBigNumberCallback; + onErrorMsgChange?: (errorMsg: React.ReactNode) => void; shouldShowIncompleteErrs: boolean; onVisitBalancesPageClick?: () => void; shouldCheckBalance: boolean; @@ -40,6 +41,7 @@ export class EthAmountInput extends React.Component<EthAmountInputProps, EthAmou balance={this.props.balance} amount={amount} onChange={this._onChange.bind(this)} + onErrorMsgChange={this.props.onErrorMsgChange} shouldCheckBalance={this.props.shouldCheckBalance} shouldShowIncompleteErrs={this.props.shouldShowIncompleteErrs} onVisitBalancesPageClick={this.props.onVisitBalancesPageClick} |