diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-06 12:36:05 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-07 01:11:30 +0800 |
commit | 3898b8e8ab083689221e39de6b18fe31e6699d38 (patch) | |
tree | 3a391b102aad84020edd74ee5912102a86dd7ada /packages/website/ts/components/wallet | |
parent | 7ee7f9978049383030be8fd95100a9dfcd1923a3 (diff) | |
download | dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.gz dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.zst dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.zip |
Wrap AllowanceToggle in redux container
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 37233930e..f8ec05790 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -23,7 +23,7 @@ import ReactTooltip = require('react-tooltip'); import firstBy = require('thenby'); import { Blockchain } from 'ts/blockchain'; -import { AllowanceToggle } from 'ts/components/inputs/allowance_toggle'; +import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; import { Container } from 'ts/components/ui/container'; import { IconButton } from 'ts/components/ui/icon_button'; import { Identicon } from 'ts/components/ui/identicon'; @@ -428,15 +428,12 @@ export class Wallet extends React.Component<WalletProps, WalletState> { ); } private _renderAllowanceToggle(config: AllowanceToggleConfig): React.ReactNode { + // TODO: Error handling return ( <AllowanceToggle - networkId={this.props.networkId} blockchain={this.props.blockchain} - dispatcher={this.props.dispatcher} token={config.token} tokenState={config.tokenState} - onErrorOccurred={_.noop} // TODO: Error handling - userAddress={this.props.userAddress} isDisabled={!config.tokenState.isLoaded} refetchTokenStateAsync={async () => this.props.refetchTokenStateAsync(config.token.address)} /> |