mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Merge pull request #75 from mewtaylor/bugfix/define-format-message
Define `formatMessage` when used.
This commit is contained in:
commit
8647d01e1f
3 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,7 @@ var Activity = React.createClass({
|
|||
};
|
||||
},
|
||||
render: function () {
|
||||
var formatMessage = this.props.intl;
|
||||
var formatMessage = this.props.intl.formatMessage;
|
||||
return (
|
||||
<Box
|
||||
className="activity"
|
||||
|
|
|
@ -121,6 +121,7 @@ var Navigation = React.createClass({
|
|||
'inner': true,
|
||||
'logged-in': this.state.session.user
|
||||
});
|
||||
var formatMessage = this.props.intl.formatMessage;
|
||||
return (
|
||||
<div className={classes}>
|
||||
<ul>
|
||||
|
|
|
@ -29,6 +29,7 @@ var News = React.createClass({
|
|||
};
|
||||
},
|
||||
render: function () {
|
||||
var formatMessage = this.props.intl.formatMessage;
|
||||
return (
|
||||
<Box
|
||||
className="news"
|
||||
|
|
Loading…
Reference in a new issue