aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/wallet
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-19 19:11:44 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-19 19:11:44 +0800
commitdead04dce8b26a09cb0b451711517bcb4dea182c (patch)
tree2f3ce593251dee6b5be2ae454fe4bcad27f2987b /packages/website/ts/components/wallet
parent3a18c249f5c780240f3dac7eb318118740056367 (diff)
downloaddexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar
dexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.gz
dexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.bz2
dexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.lz
dexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.xz
dexon-sol-tools-dead04dce8b26a09cb0b451711517bcb4dea182c.tar.zst
dexon-sol-tools-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.tsx8
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)}