aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/components/token_balances.tsx24
-rw-r--r--packages/website/ts/types.ts1
2 files changed, 0 insertions, 25 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>
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts
index 05e797ceb..4caa09025 100644
--- a/packages/website/ts/types.ts
+++ b/packages/website/ts/types.ts
@@ -135,7 +135,6 @@ export enum BalanceErrs {
faucetRequestFailed,
faucetQueueIsFull,
mintingFailed,
- wethConversionFailed,
sendFailed,
allowanceSettingFailed,
}