diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 09:56:14 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 09:56:14 +0800 |
commit | 3dfde15133fb9f623d1500bf710ecff834bc98b7 (patch) | |
tree | 96c56166edd1bc294189989cb327d51a4e3e303f /packages | |
parent | 4454cfa65dfb2f0928cddc8732a64010b0c5f0d8 (diff) | |
download | dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar.gz dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar.bz2 dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar.lz dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar.xz dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.tar.zst dexon-sol-tools-3dfde15133fb9f623d1500bf710ecff834bc98b7.zip |
Always restart onboarding from 0 and other small improvements
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/redux/reducer.ts | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 2102f39f9..0b7599aaf 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -120,7 +120,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp title: 'Step 1: Wrap ETH', content: <WrapEthOnboardingStep2 />, placement: 'right', - continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, + continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : 'disabled', }, { target: '.wallet', @@ -133,7 +133,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp /> ), placement: 'right', - continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined, + continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : 'disabled', }, { target: '.wallet', @@ -149,7 +149,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp }, { target: '.wallet', - title: '🎉 Congrats! The ecosystem awaits.', + title: '🎉 The Ecosystem Awaits.', content: <CongratsOnboardingStep />, placement: 'right', continueButtonDisplay: 'enabled', diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts index ed6a4868e..de95296b0 100644 --- a/packages/website/ts/redux/reducer.ts +++ b/packages/website/ts/redux/reducer.ts @@ -312,6 +312,8 @@ export function reducer(state: State = INITIAL_STATE, action: Action): State { ...state, isPortalOnboardingShowing, hasPortalOnboardingBeenSeen: true, + // always start onboarding from the beginning + portalOnboardingStep: 0, }; } |