Commit b0390f36 authored by Paul Kaplan's avatar Paul Kaplan

Fix lint and missing components

parent 0353135c
...@@ -15,11 +15,13 @@ const Slide = require('../../components/slide/slide.jsx'); ...@@ -15,11 +15,13 @@ const Slide = require('../../components/slide/slide.jsx');
const StepNavigation = require('../../components/stepnavigation/stepnavigation.jsx'); const StepNavigation = require('../../components/stepnavigation/stepnavigation.jsx');
const Tooltip = require('../../components/tooltip/tooltip.jsx'); const Tooltip = require('../../components/tooltip/tooltip.jsx');
const {DEFAULT_COUNTRY, NextStepButton} = require('./steps.jsx');
require('./steps.scss'); require('./steps.scss');
/* /*
* This step is separate from the other steps because it includes a large library * This step is separate from the other steps because it includes a large library
* for phone number validation. * for phone number validation.
*/ */
class PhoneNumberStep extends React.Component { class PhoneNumberStep extends React.Component {
constructor (props) { constructor (props) {
...@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component { ...@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component {
'handleValidSubmit' 'handleValidSubmit'
]); ]);
} }
handleValidSubmit(formData, reset, invalidate) { handleValidSubmit (formData, reset, invalidate) {
if (!formData.phone || formData.phone.national_number === '+') { if (!formData.phone || formData.phone.national_number === '+') {
return invalidate({ return invalidate({
phone: this.props.intl.formatMessage({id: 'form.validationRequired'}) phone: this.props.intl.formatMessage({id: 'form.validationRequired'})
...@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component { ...@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component {
} }
return this.props.onNextStep(formData); return this.props.onNextStep(formData);
} }
render() { render () {
return ( return (
<Slide className="registration-step phone-step"> <Slide className="registration-step phone-step">
<h2> <h2>
...@@ -104,4 +106,4 @@ PhoneNumberStep.defaultProps = { ...@@ -104,4 +106,4 @@ PhoneNumberStep.defaultProps = {
const IntlPhoneNumberStep = injectIntl(PhoneNumberStep); const IntlPhoneNumberStep = injectIntl(PhoneNumberStep);
module.exports = IntlPhoneNumberStep; module.exports = IntlPhoneNumberStep;
\ No newline at end of file
...@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = { ...@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = {
const IntlRegistrationError = injectIntl(RegistrationError); const IntlRegistrationError = injectIntl(RegistrationError);
module.exports.DEFAULT_COUNTRY = DEFAULT_COUNTRY;
module.exports.NextStepButton = NextStepButton;
module.exports.UsernameStep = IntlUsernameStep; module.exports.UsernameStep = IntlUsernameStep;
module.exports.ChoosePasswordStep = IntlChoosePasswordStep; module.exports.ChoosePasswordStep = IntlChoosePasswordStep;
module.exports.DemographicsStep = IntlDemographicsStep; module.exports.DemographicsStep = IntlDemographicsStep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment