Cleaning up action names and compose drawer

This commit is contained in:
Eugen Rochko
2016-08-31 16:15:12 +02:00
parent 92afd29650
commit 72591cc6d5
29 changed files with 468 additions and 151 deletions

View File

@@ -1,4 +1,5 @@
import moment from 'moment';
import moment from 'moment';
import PureRenderMixin from 'react-addons-pure-render-mixin';
moment.updateLocale('en', {
relativeTime : {
@@ -19,6 +20,7 @@ moment.updateLocale('en', {
});
const RelativeTimestamp = React.createClass({
getInitialState () {
return {
text: ''
@@ -29,6 +31,8 @@ const RelativeTimestamp = React.createClass({
timestamp: React.PropTypes.string.isRequired
},
mixins: [PureRenderMixin],
componentWillMount () {
this._updateMomentText();
this.interval = setInterval(this._updateMomentText, 6000);