aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-16 02:47:16 +0800
committerFabio Berger <me@fabioberger.com>2017-12-16 02:47:16 +0800
commit13279f1f20cb0eeb95c09781bba4280b31ffd210 (patch)
treeba0d2a8627311760e75013d2aaa60d32b219e231 /packages/website
parentb46dd2e0a277340c19fa137a436981cc53c8cb80 (diff)
downloaddexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar.gz
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar.bz2
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar.lz
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar.xz
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.tar.zst
dexon-sol-tools-13279f1f20cb0eeb95c09781bba4280b31ffd210.zip
Fix linter errors
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/eth_wrappers.tsx7
-rw-r--r--packages/website/ts/components/token_balances.tsx5
-rw-r--r--packages/website/ts/utils/configs.ts1
3 files changed, 0 insertions, 13 deletions
diff --git a/packages/website/ts/components/eth_wrappers.tsx b/packages/website/ts/components/eth_wrappers.tsx
index ccbed4188..58b73b11c 100644
--- a/packages/website/ts/components/eth_wrappers.tsx
+++ b/packages/website/ts/components/eth_wrappers.tsx
@@ -2,8 +2,6 @@ import {ZeroEx} from '0x.js';
import BigNumber from 'bignumber.js';
import * as _ from 'lodash';
import Divider from 'material-ui/Divider';
-import Paper from 'material-ui/Paper';
-import RaisedButton from 'material-ui/RaisedButton';
import {colors} from 'material-ui/styles';
import {
Table,
@@ -17,8 +15,6 @@ import * as moment from 'moment';
import * as React from 'react';
import {Blockchain} from 'ts/blockchain';
import {EthWethConversionButton} from 'ts/components/eth_weth_conversion_button';
-import {LifeCycleRaisedButton} from 'ts/components/ui/lifecycle_raised_button';
-import {trackedTokenStorage} from 'ts/local_storage/tracked_token_storage';
import {Dispatcher} from 'ts/redux/dispatcher';
import {
OutdatedWrappedEtherByNetworkId,
@@ -30,8 +26,6 @@ import {
} from 'ts/types';
import {configs} from 'ts/utils/configs';
import {constants} from 'ts/utils/constants';
-import {errorReporter} from 'ts/utils/error_reporter';
-import {utils} from 'ts/utils/utils';
const PRECISION = 5;
const DATE_FORMAT = 'D/M/YY';
@@ -39,7 +33,6 @@ const LIGHT_GRAY = '#A5A5A5';
const ICON_DIMENSION = 40;
const ETHER_ICON_PATH = '/images/ether.png';
const OUTDATED_WETH_ICON_PATH = '/images/wrapped_eth_gray.png';
-const ETHER_TOKEN_SYMBOL = 'WETH';
interface OutdatedWETHAddressToIsStateLoaded {
[address: string]: boolean;
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx
index ab232326a..db4a35062 100644
--- a/packages/website/ts/components/token_balances.tsx
+++ b/packages/website/ts/components/token_balances.tsx
@@ -655,11 +655,6 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
isDharmaDialogVisible: !this.state.isDharmaDialogVisible,
});
}
- private getWrappedEthToken() {
- const tokens = _.values(this.props.tokenByAddress);
- const wrappedEthToken = _.find(tokens, {symbol: ETHER_TOKEN_SYMBOL});
- return wrappedEthToken;
- }
private onAddTokenClicked() {
this.setState({
isTokenPickerOpen: true,
diff --git a/packages/website/ts/utils/configs.ts b/packages/website/ts/utils/configs.ts
index adc51374f..4a08929cf 100644
--- a/packages/website/ts/utils/configs.ts
+++ b/packages/website/ts/utils/configs.ts
@@ -2,7 +2,6 @@ import * as _ from 'lodash';
import {
Environments,
OutdatedWrappedEtherByNetworkId,
- TimestampMsRange,
} from 'ts/types';
const BASE_URL = window.location.origin;