aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-14 09:45:44 +0800
committerFabio Berger <me@fabioberger.com>2017-12-14 09:45:44 +0800
commitb054080fa1da88460f52021278fb33b8d88371a3 (patch)
tree31fdc03a58b3edc0f944b865792e40208fbd9e41 /packages/website/ts/components
parent565010408e9dc2dd43a00dfdaefd51035008dd6f (diff)
downloaddexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar.gz
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar.bz2
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar.lz
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar.xz
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.tar.zst
dexon-sol-tools-b054080fa1da88460f52021278fb33b8d88371a3.zip
Remove ETH-WETH convert button from balances page
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/token_balances.tsx24
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx
index ae5ef9222..799fecc69 100644
--- a/packages/website/ts/components/token_balances.tsx
+++ b/packages/website/ts/components/token_balances.tsx
@@ -23,7 +23,6 @@ import * as React from 'react';
import ReactTooltip = require('react-tooltip');
import firstBy = require('thenby');
import {Blockchain} from 'ts/blockchain';
-import {EthWethConversionButton} from 'ts/components/eth_weth_conversion_button';
import {AssetPicker} from 'ts/components/generate_order/asset_picker';
import {AllowanceToggle} from 'ts/components/inputs/allowance_toggle';
import {SendButton} from 'ts/components/send_button';
@@ -425,16 +424,6 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
onClickAsyncFn={this.onMintTestTokensAsync.bind(this, token)}
/>
}
- {token.symbol === ETHER_TOKEN_SYMBOL &&
- <EthWethConversionButton
- blockchain={this.props.blockchain}
- dispatcher={this.props.dispatcher}
- ethToken={this.getWrappedEthToken()}
- ethTokenState={tokenState}
- userEtherBalance={this.props.userEtherBalance}
- onError={this.onEthWethConversionFailed.bind(this)}
- />
- }
{token.symbol === ZRX_TOKEN_SYMBOL && this.props.networkId === constants.TESTNET_NETWORK_ID &&
<LifeCycleRaisedButton
labelReady="Request"
@@ -488,11 +477,6 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
isTokenPickerOpen: false,
});
}
- private onEthWethConversionFailed() {
- this.setState({
- errorType: BalanceErrs.wethConversionFailed,
- });
- }
private onSendFailed() {
this.setState({
errorType: BalanceErrs.sendFailed,
@@ -551,14 +535,6 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
</div>
);
- case BalanceErrs.wethConversionFailed:
- return (
- <div>
- Converting between Ether and Ether Tokens failed unexpectedly.
- Please refresh the page and try again.
- </div>
- );
-
case BalanceErrs.allowanceSettingFailed:
return (
<div>