From ba8febd107a0239e550f99fc102c00fcfb2341f1 Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Mon, 30 May 2016 17:08:30 -0700 Subject: [PATCH] fix naming of entry page --- src/components/Widgets/MarkdownPreview.js | 3 +-- src/containers/EntryPage.js | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Widgets/MarkdownPreview.js b/src/components/Widgets/MarkdownPreview.js index 28ed2562..72f6c420 100644 --- a/src/components/Widgets/MarkdownPreview.js +++ b/src/components/Widgets/MarkdownPreview.js @@ -1,6 +1,6 @@ import React from 'react'; import CommonMark from 'commonmark'; -import ReactRenderer from'commonmark-react-renderer'; +import ReactRenderer from 'commonmark-react-renderer'; const parser = new CommonMark.Parser(); const renderer = new ReactRenderer(); @@ -8,7 +8,6 @@ const renderer = new ReactRenderer(); export default class MarkdownPreview extends React.Component { render() { const { value } = this.props; - console.log(value); if (value == null) { return null; } const ast = parser.parse(value); diff --git a/src/containers/EntryPage.js b/src/containers/EntryPage.js index 9981726e..a953b2c0 100644 --- a/src/containers/EntryPage.js +++ b/src/containers/EntryPage.js @@ -3,7 +3,7 @@ import { connect } from 'react-redux'; import { Map } from 'immutable'; import EntryEditor from '../components/EntryEditor'; -class DashboardPage extends React.Component { +class EntryPage extends React.Component { componentDidMount() { } @@ -20,7 +20,6 @@ class DashboardPage extends React.Component { function mapStateToProps(state, ownProps) { const { collections } = state; const collection = collections.get(ownProps.params.name); - // const entryName = `${collection.get('name')}/${ownProps.params.slug}`; return { collection: collection, @@ -28,4 +27,4 @@ function mapStateToProps(state, ownProps) { }; } -export default connect(mapStateToProps)(DashboardPage); +export default connect(mapStateToProps)(EntryPage);