diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 16:07:50 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 16:07:50 +0800 |
commit | 2b5f45676f4c8e478b9de82a6313eb727d8845ff (patch) | |
tree | 500d795545279217fba8120d11ac92b751cd554f /packages/website/ts/components/wallet | |
parent | aedd51a61bcc9ecef660c1bea1641c0400f3ac45 (diff) | |
download | dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar.gz dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar.bz2 dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar.lz dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar.xz dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.tar.zst dexon-sol-tools-2b5f45676f4c8e478b9de82a6313eb727d8845ff.zip |
Remove unused imports and variables
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/placeholder.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 16 |
2 files changed, 1 insertions, 16 deletions
diff --git a/packages/website/ts/components/wallet/placeholder.tsx b/packages/website/ts/components/wallet/placeholder.tsx index aca46014b..bf40d2ea8 100644 --- a/packages/website/ts/components/wallet/placeholder.tsx +++ b/packages/website/ts/components/wallet/placeholder.tsx @@ -1,6 +1,5 @@ import * as React from 'react'; -import { colors } from 'ts/style/colors'; import { styled } from 'ts/style/theme'; export interface PlaceHolderProps { diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index ee8ca8aeb..ad6faff8d 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -2,20 +2,14 @@ import { constants as sharedConstants, EtherscanLinkSuffixes, utils as sharedUti import { BigNumber, errorUtils } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as _ from 'lodash'; -import CircularProgress from 'material-ui/CircularProgress'; -import FloatingActionButton from 'material-ui/FloatingActionButton'; -import { ListItem } from 'material-ui/List'; import ActionAccountBalanceWallet from 'material-ui/svg-icons/action/account-balance-wallet'; -import ContentAdd from 'material-ui/svg-icons/content/add'; -import ContentRemove from 'material-ui/svg-icons/content/remove'; import * as React from 'react'; import { Link } from 'react-router-dom'; import firstBy = require('thenby'); import { Blockchain } from 'ts/blockchain'; import { AccountConnection } from 'ts/components/ui/account_connection'; -import { Circle } from 'ts/components/ui/circle'; import { Container } from 'ts/components/ui/container'; import { IconButton } from 'ts/components/ui/icon_button'; import { Identicon } from 'ts/components/ui/identicon'; @@ -30,7 +24,6 @@ import { WrapEtherItem } from 'ts/components/wallet/wrap_ether_item'; import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; import { Dispatcher } from 'ts/redux/dispatcher'; import { colors } from 'ts/style/colors'; -import { styled } from 'ts/style/theme'; import { AccountState, BlockchainErrs, @@ -96,12 +89,6 @@ const ACCOUNT_PATH = `${WebsitePaths.Portal}/account`; const PLACEHOLDER_COLOR = colors.grey300; const LOADING_ROWS_COUNT = 6; -const ActionButton = styled(FloatingActionButton)` - button { - position: static !important; - } -`; - export class Wallet extends React.Component<WalletProps, WalletState> { public static defaultProps = { style: {}, @@ -290,7 +277,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> { ); return _.map(trackedTokensStartingWithEtherToken, this._renderTokenRow.bind(this)); } - private _renderTokenRow(token: Token, index: number): React.ReactNode { + private _renderTokenRow(token: Token): React.ReactNode { const tokenState = this.props.trackedTokenStateByAddress[token.address]; if (_.isUndefined(tokenState)) { return null; @@ -318,7 +305,6 @@ export class Wallet extends React.Component<WalletProps, WalletState> { }, }; const key = token.address; - const isLastRow = index === this.props.trackedTokens.length - 1; return this._renderBalanceRow( key, icon, |