aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-26 02:36:07 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-26 03:03:18 +0800
commite575323c6013b89873b698a7f34da135a4b2c51f (patch)
tree43ff4bed7fdf007936fc1ba3ee3d113f884dd842 /packages/website/ts/containers
parent809ac3340cb477d4b46e24d4bad028568beeec06 (diff)
downloaddexon-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.ts8
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 => {