Fix lint errors, l10n issues

This commit is contained in:
Ray Schamp 2016-07-20 12:07:19 -04:00
parent 6d5b7d3c02
commit a3b56dcbf1
3 changed files with 9 additions and 11 deletions

View file

@ -715,7 +715,7 @@ module.exports = {
);
}
})),
ClassInviteStep: intl.injectIntl(React.createClass({
ClassInviteStep: React.createClass({
getDefaultProps: function () {
return {
classroom: {
@ -736,7 +736,6 @@ module.exports = {
};
},
onNextStep: function () {
console.log("onNextStep");
this.props.onNextStep();
},
render: function () {
@ -760,8 +759,8 @@ module.exports = {
</Slide>
);
}
})),
ClassWelcomeStep: intl.injectIntl(React.createClass({
}),
ClassWelcomeStep: React.createClass({
getDefaultProps: function () {
return {
classroom: {
@ -804,7 +803,7 @@ module.exports = {
</Slide>
);
}
})),
}),
RegistrationError: intl.injectIntl(React.createClass({
render: function () {
return (

View file

@ -0,0 +1,3 @@
{
"studentRegistration.classroomApiGeneralError": "Sorry, we could not find the registration information for this class"
}

View file

@ -41,8 +41,7 @@ var StudentRegistration = intl.injectIntl(React.createClass({
if (err) {
return this.setState({
registrationError: this.props.intl.formatMessage({
id: 'studentRegistration.classroomApiGeneralError',
defaultMessage: 'Sorry, we could not find the registration information for this class'
id: 'studentRegistration.classroomApiGeneralError'
})
});
}
@ -87,10 +86,7 @@ var StudentRegistration = intl.injectIntl(React.createClass({
window.location = '/classes/' + this.props.classroomId + '/';
},
render: function () {
var demographicsDescription = this.props.intl.formatMessage({
id: 'registration.notOnWebsite',
defaultMessage: 'This information will not appear on the Scratch website.'
});
var demographicsDescription = this.props.intl.formatMessage({id: 'registration.notOnWebsite'});
return (
<Deck className="student-registration">
{this.state.registrationError ?