Always restart onboarding from 0 and other small improvements
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user