From 0a4ebe5e10ae4e817d25f1b9b671e10c420b66f3 Mon Sep 17 00:00:00 2001 From: Luandro Date: Wed, 7 Oct 2015 08:57:25 -0300 Subject: [PATCH] updated readNext to es6 --- components/ReadNext.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ReadNext.jsx b/components/ReadNext.jsx index 5eac26a..06f402b 100644 --- a/components/ReadNext.jsx +++ b/components/ReadNext.jsx @@ -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({ ); } } -}); +} \ No newline at end of file