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/onboarding | |
parent | 7ee7f9978049383030be8fd95100a9dfcd1923a3 (diff) | |
download | dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.gz dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.bz2 dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.lz dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.xz dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.tar.zst dexon-sol-tools-3898b8e8ab083689221e39de6b18fe31e6699d38.zip |
Wrap AllowanceToggle in redux container
Diffstat (limited to 'packages/website/ts/components/onboarding')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index bf52684d7..65cb20733 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -5,6 +5,7 @@ import { BigNumber } from '@0xproject/utils'; import { OnboardingFlow, Step } from 'ts/components/onboarding/onboarding_flow'; import { ProviderType, TokenByAddress, TokenStateByAddress } from 'ts/types'; import { utils } from 'ts/utils/utils'; +import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; export interface PortalOnboardingFlowProps { stepIndex: number; @@ -77,6 +78,12 @@ export class PortalOnboardingFlow extends React.Component<PortalOnboardingFlowPr placement: 'right', continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : 'disabled', }, + { + target: '.weth-row', + content: 'Unlock your tokens for trading. You only need to do this once for each token.', + placement: 'right', + continueButtonDisplay: 'disabled', + }, ]; return steps; } @@ -125,4 +132,12 @@ export class PortalOnboardingFlow extends React.Component<PortalOnboardingFlowPr this.props.updateIsRunning(true); } } + private _renderAllowanceToggle(): React.ReactNode { + return ( + <AllowanceToggle + blockchain={this.props.blockchain} + refetchTokenStateAsync={this.props.refetchTokenStateAsync} + /> + ); + } } |