From 8ffbda72236b10eec128c205bce8431b6ac8d1f5 Mon Sep 17 00:00:00 2001
From: Jure Triglav <juretriglav@gmail.com>
Date: Tue, 3 Nov 2015 13:35:38 +0100
Subject: [PATCH] Lens reader integration.

---
 app/components/BlogRoll/LensBlogpost.jsx | 19 +++++++++++++++++++
 app/containers/BlogRoll.jsx              |  2 +-
 app/routes.jsx                           |  2 +-
 3 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 app/components/BlogRoll/LensBlogpost.jsx

diff --git a/app/components/BlogRoll/LensBlogpost.jsx b/app/components/BlogRoll/LensBlogpost.jsx
new file mode 100644
index 000000000..8226d4356
--- /dev/null
+++ b/app/components/BlogRoll/LensBlogpost.jsx
@@ -0,0 +1,19 @@
+import React from 'react'
+import LensReader from 'lens/ReactLensReader'
+import '../../scss/components/_blogpost'
+
+export default class LensBlogpost extends React.Component {
+  render () {
+    const { blogpost } = this.props
+
+    return (
+      <div className='blogpost'>
+        <LensReader content={blogpost.source} />
+      </div>
+    )
+  }
+}
+
+LensBlogpost.propTypes = {
+  blogpost: React.PropTypes.object
+}
diff --git a/app/containers/BlogRoll.jsx b/app/containers/BlogRoll.jsx
index 2f88a75aa..fd8179acb 100644
--- a/app/containers/BlogRoll.jsx
+++ b/app/containers/BlogRoll.jsx
@@ -6,7 +6,7 @@ import '../scss/main'
 import * as Actions from '../actions'
 import { bindActionCreators } from 'redux'
 
-import Blogpost from '../components/BlogRoll/Blogpost'
+import Blogpost from '../components/BlogRoll/LensBlogpost'
 
 class BlogRoll extends React.Component {
   constructor (props) {
diff --git a/app/routes.jsx b/app/routes.jsx
index d8c899055..3b4adb225 100644
--- a/app/routes.jsx
+++ b/app/routes.jsx
@@ -5,7 +5,7 @@ import { Route } from 'react-router'
 import Admin from './containers/Admin'
 import About from './components/Admin/About'
 import BlogManager from './containers/BlogManager'
-import Editor from './components/Admin/MarkdownEditor'
+import Editor from './components/Admin/SubstanceEditor'
 
 // Public
 import BlogRoll from './containers/BlogRoll'
-- 
GitLab