import React from 'react'; import {Field, reduxForm} from '../../index'; const validationIsRequired = (value) => !value ? 'Field required.' : undefined; const validationMinLength = (value) => value && (value.length < 2) ? 'The minimum length of the value must be 2.' : undefined; const Step2Component = (props) => { const {prevPage} = props; const {handleSubmit, formActions: {resetForm}} = props as IReduxFormInjected<{}>; return (
); }; const Step2 = reduxForm({ form: 'step2', wizard: 'wizardExample', destroyOnUnmount: false, initialValues: { phone: '+78889996655', email: 'test@mail.ru', }, })(Step2Component); export default Step2;