mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Provide intl to TeacherRegistration
This commit is contained in:
parent
cfc962adc1
commit
afe63af707
1 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,7 @@ var React = require('react');
|
|||
var render = require('../../lib/render.jsx');
|
||||
|
||||
var api = require('../../lib/api');
|
||||
var intl = require('../../lib/intl.jsx');
|
||||
var sessionActions = require('../../redux/session.js');
|
||||
|
||||
var Deck = require('../../components/deck/deck.jsx');
|
||||
|
@ -13,7 +14,7 @@ var Steps = require('../../components/registration/steps.jsx');
|
|||
require('./teacherregistration.scss');
|
||||
|
||||
|
||||
var TeacherRegistration = React.createClass({
|
||||
var TeacherRegistration = intl.injectIntl(React.createClass({
|
||||
type: 'TeacherRegistration',
|
||||
getInitialState: function () {
|
||||
return {
|
||||
|
@ -79,7 +80,6 @@ var TeacherRegistration = React.createClass({
|
|||
this.props.intl.formatMessage({id: 'registration.generalError'}) + ' (' + res.statusCode + ')'
|
||||
});
|
||||
}.bind(this));
|
||||
|
||||
},
|
||||
render: function () {
|
||||
var permissions = this.props.session.permissions || {};
|
||||
|
@ -122,7 +122,7 @@ var TeacherRegistration = React.createClass({
|
|||
</Deck>
|
||||
);
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
var mapStateToProps = function (state) {
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue