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');
const StepNavigation = require('../../components/stepnavigation/stepnavigation.jsx');
const Tooltip = require('../../components/tooltip/tooltip.jsx');
const {DEFAULT_COUNTRY, NextStepButton} = require('./steps.jsx');
require('./steps.scss');
/*
* 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 {
constructor (props) {
......@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component {
'handleValidSubmit'
]);
}
handleValidSubmit(formData, reset, invalidate) {
handleValidSubmit (formData, reset, invalidate) {
if (!formData.phone || formData.phone.national_number === '+') {
return invalidate({
phone: this.props.intl.formatMessage({id: 'form.validationRequired'})
......@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component {
}
return this.props.onNextStep(formData);
}
render() {
render () {
return (
<Slide className="registration-step phone-step">
<h2>
......@@ -104,4 +106,4 @@ PhoneNumberStep.defaultProps = {
const IntlPhoneNumberStep = injectIntl(PhoneNumberStep);
module.exports = IntlPhoneNumberStep;
\ No newline at end of file
module.exports = IntlPhoneNumberStep;
......@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = {
const IntlRegistrationError = injectIntl(RegistrationError);
module.exports.DEFAULT_COUNTRY = DEFAULT_COUNTRY;
module.exports.NextStepButton = NextStepButton;
module.exports.UsernameStep = IntlUsernameStep;
module.exports.ChoosePasswordStep = IntlChoosePasswordStep;
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