diff --git a/src/views/teacherregistration/steps.jsx b/src/views/teacherregistration/steps.jsx index 593f23cb9..33fade31a 100644 --- a/src/views/teacherregistration/steps.jsx +++ b/src/views/teacherregistration/steps.jsx @@ -43,6 +43,11 @@ var NextStepButton = React.createClass({ module.exports = { UsernameStep: intl.injectIntl(React.createClass({ + getDefaultProps: function () { + return { + waiting: false + }; + }, getInitialState: function () { return { showPassword: false, @@ -136,7 +141,7 @@ module.exports = { onChange={this.onChangeShowPassword} help={null} name="showPassword" /> - } /> @@ -147,7 +152,10 @@ module.exports = { })), DemographicsStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { - return {defaultCountry: DEFAULT_COUNTRY}; + return { + defaultCountry: DEFAULT_COUNTRY, + waiting: false + }; }, getInitialState: function () { return {otherDisabled: true}; @@ -212,7 +220,7 @@ module.exports = { - } /> @@ -222,6 +230,11 @@ module.exports = { } })), NameStep: intl.injectIntl(React.createClass({ + getDefaultProps: function () { + return { + waiting: false + }; + }, render: function () { var formatMessage = this.props.intl.formatMessage; return ( @@ -242,7 +255,7 @@ module.exports = { type="text" name="user.name.last" required /> - } /> @@ -253,7 +266,10 @@ module.exports = { })), PhoneNumberStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { - return {defaultCountry: DEFAULT_COUNTRY}; + return { + defaultCountry: DEFAULT_COUNTRY, + waiting: false + }; }, render: function () { var formatMessage = this.props.intl.formatMessage; @@ -280,7 +296,7 @@ module.exports = { validationErrors={{ isFalse: formatMessage({id: 'teacherRegistration.validationPhoneConsent'}) }} /> - } /> @@ -295,6 +311,11 @@ module.exports = { otherDisabled: true }; }, + getDefaultProps: function () { + return { + waiting: false + }; + }, organizationL10nStems: [ 'orgChoiceElementarySchool', 'orgChoiceMiddleSchool', @@ -353,7 +374,7 @@ module.exports = { - } /> @@ -364,7 +385,10 @@ module.exports = { })), AddressStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { - return {defaultCountry: DEFAULT_COUNTRY}; + return { + defaultCountry: DEFAULT_COUNTRY, + waiting: false + }; }, getInitialState: function () { return { @@ -460,7 +484,7 @@ module.exports = { type="text" name="address.zip" required /> - } /> @@ -470,6 +494,11 @@ module.exports = { } })), UseScratchStep: intl.injectIntl(React.createClass({ + getDefaultProps: function () { + return { + waiting: false + }; + }, render: function () { var formatMessage = this.props.intl.formatMessage; return ( @@ -485,7 +514,7 @@ module.exports = {