From 742b029244d7ed5f8cb8c885bac5d9be5ef8574d Mon Sep 17 00:00:00 2001 From: Gianluca Esposito Date: Thu, 10 Sep 2015 22:54:25 +0200 Subject: [PATCH] Converted ReadNext Component to ES6 --- components/ReadNext.cjsx | 50 ----------------------------------- components/ReadNext.jsx | 56 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 50 deletions(-) delete mode 100644 components/ReadNext.cjsx create mode 100644 components/ReadNext.jsx diff --git a/components/ReadNext.cjsx b/components/ReadNext.cjsx deleted file mode 100644 index 4d49aeb..0000000 --- a/components/ReadNext.cjsx +++ /dev/null @@ -1,50 +0,0 @@ -React = require 'react' -Router = require 'react-router' -{Link} = Router -prune = require 'underscore.string/prune' -includes = require 'underscore.string/include' -find = require 'lodash/collection/find' - -module.exports = React.createClass - - render: -> - {rhythm, fontSizeToMS} = @props.typography - readNext = @props.post.readNext - if readNext? - nextPost = find @props.pages, (page) -> includes page.path, readNext.slice(1, -1) - unless nextPost -