diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-28 05:24:06 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 02:50:08 +0800 |
commit | a60dd1cbaf118f1d0b38f749807f13dab98da0a5 (patch) | |
tree | 8757bd4e95b2b725b8afbeb98614a7ea680f66f9 /packages/website/ts/components/wallet/wallet.tsx | |
parent | 7ee37fb62af7014f8a2aae435458302887781be0 (diff) | |
download | dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar.gz dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar.bz2 dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar.lz dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar.xz dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.tar.zst dexon-sol-tools-a60dd1cbaf118f1d0b38f749807f13dab98da0a5.zip |
Fix key issue and remove WalletDisconnectedItem
Diffstat (limited to 'packages/website/ts/components/wallet/wallet.tsx')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 9e9bb2e97..febb526d7 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -27,7 +27,6 @@ import { Island } from 'ts/components/ui/island'; import { Text } from 'ts/components/ui/text'; import { TokenIcon } from 'ts/components/ui/token_icon'; import { BodyOverlay } from 'ts/components/wallet/body_overlay'; -import { WalletDisconnectedItem } from 'ts/components/wallet/wallet_disconnected_item'; import { WrapEtherItem } from 'ts/components/wallet/wrap_ether_item'; import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; import { Dispatcher } from 'ts/redux/dispatcher'; @@ -195,7 +194,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> { return ( <div key={BODY_ITEM_KEY} className="flex flex-column" style={bodyStyle}> {_.map(loadingRowsRange, index => { - return <NullTokenRow />; + return <NullTokenRow key={index} />; })} <Container className="flex items-center" @@ -249,16 +248,6 @@ export class Wallet extends React.Component<WalletProps, WalletState> { /> ); } - private _renderDisconnectedRows(): React.ReactElement<{}> { - return ( - <WalletDisconnectedItem - key={DISCONNECTED_ITEM_KEY} - providerType={this.props.providerType} - injectedProviderName={this.props.injectedProviderName} - onToggleLedgerDialog={this.props.onToggleLedgerDialog} - /> - ); - } private _renderConnectedHeaderRows(): React.ReactElement<{}> { const userAddress = this.props.userAddress; const main = ( |