diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-19 19:11:44 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-19 19:11:44 +0800 |
commit | dead04dce8b26a09cb0b451711517bcb4dea182c (patch) | |
tree | 2f3ce593251dee6b5be2ae454fe4bcad27f2987b /packages/website/ts/components/wallet | |
parent | 3a18c249f5c780240f3dac7eb318118740056367 (diff) | |
download | dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.gz dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.bz2 dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.lz dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.xz dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.zst dexon-0x-contracts-dead04dce8b26a09cb0b451711517bcb4dea182c.zip |
WIP for sending ether from portal (works)
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/wrap_ether_item.tsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/website/ts/components/wallet/wrap_ether_item.tsx b/packages/website/ts/components/wallet/wrap_ether_item.tsx index fcab5d1dd..54ace7ae2 100644 --- a/packages/website/ts/components/wallet/wrap_ether_item.tsx +++ b/packages/website/ts/components/wallet/wrap_ether_item.tsx @@ -6,9 +6,9 @@ import FlatButton from 'material-ui/FlatButton'; import * as React from 'react'; import { Blockchain } from 'ts/blockchain'; -import { EthAmountInput } from 'ts/components/inputs/eth_amount_input'; import { TokenAmountInput } from 'ts/components/inputs/token_amount_input'; import { Container } from 'ts/components/ui/container'; +import { EthAmountInput } from 'ts/containers/inputs/eth_amount_input'; import { Dispatcher } from 'ts/redux/dispatcher'; import { colors } from 'ts/style/colors'; import { BlockchainCallErrs, Side, Token } from 'ts/types'; @@ -87,13 +87,8 @@ export class WrapEtherItem extends React.Component<WrapEtherItemProps, WrapEther }; } public render(): React.ReactNode { - const etherBalanceInEth = Web3Wrapper.toUnitAmount( - this.props.userEtherBalanceInWei, - constants.DECIMAL_PLACES_ETH, - ); const isWrappingEth = this.props.direction === Side.Deposit; const topLabelText = isWrappingEth ? 'Convert ETH into WETH 1:1' : 'Convert WETH into ETH 1:1'; - return ( <Container className="flex" backgroundColor={colors.walletFocusedItemBackground} paddingTop="25px"> <div>{this._renderIsEthConversionHappeningSpinner()} </div> @@ -103,7 +98,6 @@ export class WrapEtherItem extends React.Component<WrapEtherItemProps, WrapEther <div style={styles.inputContainer}> {isWrappingEth ? ( <EthAmountInput - balance={etherBalanceInEth} amount={this.state.currentInputAmount} hintText="0.00" onChange={this._onValueChange.bind(this)} |