Merge pull request #75 from mewtaylor/bugfix/define-format-message

Define `formatMessage` when used.
This commit is contained in:
Andrew Sliwinski 2015-10-19 20:37:24 -04:00
commit 8647d01e1f
3 changed files with 3 additions and 1 deletions

View file

@ -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"

View file

@ -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>

View file

@ -29,6 +29,7 @@ var News = React.createClass({
};
},
render: function () {
var formatMessage = this.props.intl.formatMessage;
return (
<Box
className="news"