diff --git a/src/components/join-flow/join-flow.jsx b/src/components/join-flow/join-flow.jsx index 632288b74..3efb29b09 100644 --- a/src/components/join-flow/join-flow.jsx +++ b/src/components/join-flow/join-flow.jsx @@ -16,7 +16,7 @@ const GenderStep = require('./gender-step.jsx'); const CountryStep = require('./country-step.jsx'); const EmailStep = require('./email-step.jsx'); const WelcomeStep = require('./welcome-step.jsx'); -const RegistrationError = require('./registration-error.jsx'); +const RegistrationErrorStep = require('./registration-error-step.jsx'); /* eslint-disable react/prefer-stateless-function, react/no-unused-prop-types, no-useless-constructor @@ -128,7 +128,7 @@ class JoinFlow extends React.Component { return ( {this.state.registrationError ? ( - this.handleRegister(this.state.formData)} diff --git a/src/components/join-flow/registration-error.jsx b/src/components/join-flow/registration-error-step.jsx similarity index 82% rename from src/components/join-flow/registration-error.jsx rename to src/components/join-flow/registration-error-step.jsx index 3f0431e80..0f4bd26fe 100644 --- a/src/components/join-flow/registration-error.jsx +++ b/src/components/join-flow/registration-error-step.jsx @@ -7,14 +7,12 @@ const JoinFlowStep = require('./join-flow-step.jsx'); require('./join-flow-steps.scss'); -class RegistrationError extends React.Component { +class RegistrationErrorStep extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleSubmit' ]); - this.state = { - }; } handleSubmit (e) { e.preventDefault(); // prevent page reload @@ -33,12 +31,12 @@ class RegistrationError extends React.Component { } } -RegistrationError.propTypes = { +RegistrationErrorStep.propTypes = { errorMsg: PropTypes.string, intl: intlShape, onTryAgain: PropTypes.func }; -const IntlRegistrationError = injectIntl(RegistrationError); +const IntlRegistrationErrorStep = injectIntl(RegistrationErrorStep); -module.exports = IntlRegistrationError; +module.exports = IntlRegistrationErrorStep;