mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-14 15:09:59 -04:00
Fix lint errors, l10n issues
This commit is contained in:
parent
6d5b7d3c02
commit
a3b56dcbf1
3 changed files with 9 additions and 11 deletions
|
@ -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 (
|
||||
|
|
3
src/views/studentregistration/l10n.json
Normal file
3
src/views/studentregistration/l10n.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"studentRegistration.classroomApiGeneralError": "Sorry, we could not find the registration information for this class"
|
||||
}
|
|
@ -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 ?
|
||||
|
|
Loading…
Reference in a new issue