diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-23 01:15:58 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:51:06 +0800 |
commit | 7af77d3eb0a73a0bd27898f5d3842c7dc7afef77 (patch) | |
tree | 9e054751e325965ce7c0d6ab18dbbd7447808751 /packages/website/ts/containers | |
parent | de1ff52de3c9953dfb60283c8025b73d6e417029 (diff) | |
download | dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar.gz dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar.bz2 dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar.lz dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar.xz dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.tar.zst dexon-sol-tools-7af77d3eb0a73a0bd27898f5d3842c7dc7afef77.zip |
Basic onboarding flow infrastructure set up
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r-- | packages/website/ts/containers/portal_onboarding_flow.ts | 23 |
1 files changed, 23 insertions, 0 deletions
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<PortalOnboardingFlowComponentProps> = connect(mapStateToProps)(PortalOnboardingFlowComponent); |