aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-25 08:10:39 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-26 03:03:18 +0800
commit809ac3340cb477d4b46e24d4bad028568beeec06 (patch)
tree486f7959929927a575a0912100f9699a81c19813 /packages/website/ts/containers
parentf0af6388748bdf08ae81e079e497dc879703c97d (diff)
downloaddexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar.gz
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar.bz2
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar.lz
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar.xz
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.tar.zst
dexon-sol-tools-809ac3340cb477d4b46e24d4bad028568beeec06.zip
Add ability to blacklist onboarding steps
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
index 3ce91b7b3..3db8762ec 100644
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ b/packages/website/ts/containers/portal_onboarding_flow.ts
@@ -19,6 +19,7 @@ interface ConnectedState {
interface ConnectedDispatch {
onClose: () => void;
+ setOnboardingStep: (stepIndex: number) => void;
}
const mapStateToProps = (state: State): ConnectedState => ({
@@ -37,6 +38,12 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
data: false,
});
},
+ setOnboardingStep: (stepIndex: number): void => {
+ dispatch({
+ type: ActionTypes.UpdatePortalOnboardingStep,
+ data: stepIndex,
+ });
+ },
});
export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowProps> = connect(