updated readNext to es6

This commit is contained in:
Luandro 2015-10-07 08:57:25 -03:00
parent 7706b42e01
commit 0a4ebe5e10

View file

@ -3,8 +3,8 @@ import { Link } from 'react-router';
import { prune, include as includes } from 'underscore.string';
import find from 'lodash/collection/find';
module.exports = React.createClass({
render: function() {
export default class extends React.Component {
render() {
var body, fontSizeToMS, html, nextPost, readNext, ref, rhythm;
ref = this.props.typography, rhythm = ref.rhythm, fontSizeToMS = ref.fontSizeToMS;
readNext = this.props.post.readNext;
@ -53,4 +53,4 @@ module.exports = React.createClass({
);
}
}
});
}