From 7af77d3eb0a73a0bd27898f5d3842c7dc7afef77 Mon Sep 17 00:00:00 2001 From: fragosti Date: Tue, 22 May 2018 10:15:58 -0700 Subject: Basic onboarding flow infrastructure set up --- .../ts/containers/portal_onboarding_flow.ts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/website/ts/containers/portal_onboarding_flow.ts (limited to 'packages/website/ts/containers') diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts new file mode 100644 index 000000000..46c23f62f --- /dev/null +++ b/packages/website/ts/containers/portal_onboarding_flow.ts @@ -0,0 +1,23 @@ +import * as React from 'react'; +import { connect } from 'react-redux'; +import { Dispatch } from 'redux'; + +import { + PortalOnboardingFlow as PortalOnboardingFlowComponent, + PortalOnboardingFlowProps as PortalOnboardingFlowComponentProps, +} from 'ts/components/onboarding/portal_onboarding_flow'; +import { State } from 'ts/redux/reducer'; + +interface ConnectedState { + stepIndex: number; + isRunning: boolean; +} + +const mapStateToProps = (state: State, ownProps: PortalOnboardingFlowComponentProps): ConnectedState => { + return { + stepIndex: state.portalOnboardingStep, + isRunning: state.isPortalOnboardingShowing, + }; +}; + +export const PortalOnboardingFlow: React.ComponentClass = connect(mapStateToProps)(PortalOnboardingFlowComponent); -- cgit v1.2.3