diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-26 02:36:07 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-26 03:03:18 +0800 |
commit | e575323c6013b89873b698a7f34da135a4b2c51f (patch) | |
tree | 43ff4bed7fdf007936fc1ba3ee3d113f884dd842 /packages/website/ts/containers | |
parent | 809ac3340cb477d4b46e24d4bad028568beeec06 (diff) | |
download | dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.gz dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.bz2 dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.lz dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.xz dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.zst dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.zip |
Auto-show onboarding flow on first page view
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r-- | packages/website/ts/containers/portal_onboarding_flow.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts index 3db8762ec..a7bd86ab1 100644 --- a/packages/website/ts/containers/portal_onboarding_flow.ts +++ b/packages/website/ts/containers/portal_onboarding_flow.ts @@ -15,10 +15,11 @@ interface ConnectedState { providerType: ProviderType; injectedProviderName: string; blockchainIsLoaded: boolean; + hasBeenSeen: boolean; } interface ConnectedDispatch { - onClose: () => void; + setIsRunning: (isRunning: boolean) => void; setOnboardingStep: (stepIndex: number) => void; } @@ -29,13 +30,14 @@ const mapStateToProps = (state: State): ConnectedState => ({ providerType: state.providerType, injectedProviderName: state.injectedProviderName, blockchainIsLoaded: state.blockchainIsLoaded, + hasBeenSeen: state.hasPortalOnboardingBeenSeen, }); const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ - onClose: (): void => { + setIsRunning: (isRunning: boolean): void => { dispatch({ type: ActionTypes.UpdatePortalOnboardingShowing, - data: false, + data: isRunning, }); }, setOnboardingStep: (stepIndex: number): void => { |