11import React , { Component } from "react" ;
22import { connect } from "react-redux" ;
3- // import { reduxForm, Field } from "redux-form";
3+ // import { Field } from "redux-form";
44import wizard from "../../../modules/wizard" ;
55import PageWithValidations from "./PageWithValidations" ;
66import PageWithInitializations from "./PageWithInitializations" ;
77
88const {
9- components : { Wizard , WizardPage } ,
10- selectors : { getWizardState , wizardIsDisposing, wizardIsDone }
9+ components : { WizardPage , Wizard } ,
10+ selectors : { wizardIsDisposing, wizardIsDone, getWizardState }
1111} = wizard ;
1212
1313const PageWithProps = ( { passedInData } ) => (
@@ -22,6 +22,14 @@ const SimplePage = () => (
2222 </ WizardPage >
2323) ;
2424
25+ // const required = value => value;
26+
27+ // const PageWithReduxFormsValidations = () => (
28+ // <form name="wizardForm">
29+ // <Field component={text} name="test" validations={[required]} />
30+ // </form>
31+ // );
32+
2533class WizardExampleContainer extends Component {
2634 componentDidUpdate ( prevProps ) {
2735 if ( wizardIsDisposing ( prevProps , this . props ) ) {
@@ -46,7 +54,7 @@ class WizardExampleContainer extends Component {
4654 pages = { [
4755 {
4856 component : SimplePage ,
49- title : "Step 1: Page with initializations "
57+ title : "Step 1: Simple page "
5058 } ,
5159 {
5260 component : PageWithProps ,
0 commit comments