Adding react-intl i18n to the frontend. No translations yet

This commit is contained in:
Eugen Rochko 2016-11-16 17:20:52 +01:00
parent 546c4718e7
commit 01e43c3e57
31 changed files with 263 additions and 223 deletions

View file

@ -3,7 +3,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import { ScrollContainer } from 'react-router-scroll';
import StatusContainer from '../containers/status_container';
import moment from 'moment';
const StatusList = React.createClass({
@ -21,14 +20,14 @@ const StatusList = React.createClass({
getInitialState () {
return {
now: moment()
now: new Date()
};
},
mixins: [PureRenderMixin],
componentDidMount () {
this._interval = setInterval(() => this.setState({ now: moment() }), 60000);
this._interval = setInterval(() => this.setState({ now: new Date() }), 60000);
},
componentWillUnmount () {