diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 10:21:09 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 10:21:09 +0800 |
commit | cd169869428f80c2bb89dbd282783b105472a4a1 (patch) | |
tree | 1973a0d96f2efe132c9b2aca7c5851aa348c5f62 /packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | |
parent | e481404a149913beb4bd7c24a3535488caf62bcb (diff) | |
download | dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar.gz dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar.bz2 dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar.lz dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar.xz dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.tar.zst dexon-0x-contracts-cd169869428f80c2bb89dbd282783b105472a4a1.zip |
Bring you directly to relayers page once you finish onboarding
Diffstat (limited to 'packages/website/ts/components/onboarding/portal_onboarding_flow.tsx')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 7 |
1 files changed, 7 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 40172677b..13eb444cd 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -155,6 +155,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp continueButtonDisplay: 'enabled', shouldHideNextButton: true, continueButtonText: 'Enter the 0x Ecosystem', + onContinueButtonClick: this._handleFinalStepContinueClick.bind(this), }, ]; return steps; @@ -262,6 +263,12 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp /> ); } + private _handleFinalStepContinueClick(): void { + if (utils.isMobile(this.props.screenWidth)) { + this.props.history.push('/portal'); + } + this._closeOnboarding(); + } } export const PortalOnboardingFlow = withRouter(PlainPortalOnboardingFlow); |