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);