fix naming of entry page
This commit is contained in:
parent
d2aa1adf7b
commit
ba8febd107
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user