diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-15 05:41:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 05:41:42 +0800 |
commit | e7eb220c503118631a6b23071c71b4b55df5b5cf (patch) | |
tree | 3eef31cad2d42ac8c5c2ec644503aa03e018d1fe /packages/website/ts/components/wallet | |
parent | 0e354e5ea1f9951088331a310999bf87c8f8f4b3 (diff) | |
parent | 7d6700582006d201f8757107b4cf286bb0ee5661 (diff) | |
download | dexon-0x-contracts-e7eb220c503118631a6b23071c71b4b55df5b5cf.tar.gz dexon-0x-contracts-e7eb220c503118631a6b23071c71b4b55df5b5cf.tar.zst dexon-0x-contracts-e7eb220c503118631a6b23071c71b4b55df5b5cf.zip |
Merge pull request #695 from 0xProject/feature/website/onboarding-flow-allowances
Implement allowances and final "congrats" onboarding flow step
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 f80be6313..4523b0ac9 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -13,7 +13,6 @@ import { Link } from 'react-router-dom'; import firstBy = require('thenby'); import { Blockchain } from 'ts/blockchain'; -import { AllowanceToggle } from 'ts/components/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'; @@ -21,6 +20,7 @@ import { Island } from 'ts/components/ui/island'; import { TokenIcon } from 'ts/components/ui/token_icon'; 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'; import { colors } from 'ts/style/colors'; import { zIndex } from 'ts/style/z_index'; @@ -414,15 +414,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)} /> |