Adding react-intl i18n to the frontend. No translations yet
This commit is contained in:
parent
546c4718e7
commit
01e43c3e57
31 changed files with 263 additions and 223 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue