diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-11-03 06:45:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-03 06:45:58 +0800 |
commit | d0f20a4fd5d1ab563d4b1c941b55018da129334e (patch) | |
tree | f8e19a2aeba33214b0eb784e402a491b9036ff07 /packages/instant/src/containers | |
parent | 18fef7ade493798426417c7095d0458219423d14 (diff) | |
parent | f5c7a3c26a4a1ddb6ba7692cee0d332f2dedb738 (diff) | |
download | dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar.gz dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar.bz2 dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar.lz dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar.xz dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.tar.zst dexon-sol-tools-d0f20a4fd5d1ab563d4b1c941b55018da129334e.zip |
Merge pull request #1206 from 0xProject/fix/instant/decimal-fields-scaling-amount-input-bn
[instant] Fix decimal input issues on instant
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_erc20_asset_amount_input.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts index fcbd0efe3..12bc7040e 100644 --- a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts +++ b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts @@ -14,7 +14,6 @@ import { State } from '../redux/reducer'; import { ColorOption } from '../style/theme'; import { AffiliateInfo, ERC20Asset, OrderProcessState } from '../types'; import { assetUtils } from '../util/asset'; -import { BigNumberInput } from '../util/big_number_input'; import { errorFlasher } from '../util/error_flasher'; export interface SelectedERC20AssetAmountInputProps { @@ -25,7 +24,7 @@ export interface SelectedERC20AssetAmountInputProps { interface ConnectedState { assetBuyer?: AssetBuyer; - value?: BigNumberInput; + value?: BigNumber; asset?: ERC20Asset; isDisabled: boolean; affiliateInfo?: AffiliateInfo; @@ -34,16 +33,16 @@ interface ConnectedState { interface ConnectedDispatch { updateBuyQuote: ( assetBuyer?: AssetBuyer, - value?: BigNumberInput, + value?: BigNumber, asset?: ERC20Asset, affiliateInfo?: AffiliateInfo, ) => void; } interface ConnectedProps { - value?: BigNumberInput; + value?: BigNumber; asset?: ERC20Asset; - onChange: (value?: BigNumberInput, asset?: ERC20Asset) => void; + onChange: (value?: BigNumber, asset?: ERC20Asset) => void; isDisabled: boolean; } |