const bindAll = require('lodash.bindall'); const React = require('react'); const PropTypes = require('prop-types'); import {Formik} from 'formik'; const {injectIntl, intlShape} = require('react-intl'); const JoinFlowStep = require('./join-flow-step.jsx'); require('./join-flow-steps.scss'); class EmailStep extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleValidSubmit', 'validateForm' ]); } validateForm () { return {}; } handleValidSubmit (formData, formikBag) { formikBag.setSubmitting(false); this.props.onNextStep(formData); } render () { return ( {props => { const { handleSubmit, isSubmitting } = props; return ( ); }} ); } } EmailStep.propTypes = { intl: intlShape, onNextStep: PropTypes.func }; module.exports = injectIntl(EmailStep);