fix naming of entry page

This commit is contained in:
Mathias Biilmann Christensen 2016-05-30 17:08:30 -07:00
parent d2aa1adf7b
commit ba8febd107
2 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,6 @@ const renderer = new ReactRenderer();
export default class MarkdownPreview extends React.Component { export default class MarkdownPreview extends React.Component {
render() { render() {
const { value } = this.props; const { value } = this.props;
console.log(value);
if (value == null) { return null; } if (value == null) { return null; }
const ast = parser.parse(value); const ast = parser.parse(value);

View File

@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { Map } from 'immutable'; import { Map } from 'immutable';
import EntryEditor from '../components/EntryEditor'; import EntryEditor from '../components/EntryEditor';
class DashboardPage extends React.Component { class EntryPage extends React.Component {
componentDidMount() { componentDidMount() {
} }
@ -20,7 +20,6 @@ class DashboardPage extends React.Component {
function mapStateToProps(state, ownProps) { function mapStateToProps(state, ownProps) {
const { collections } = state; const { collections } = state;
const collection = collections.get(ownProps.params.name); const collection = collections.get(ownProps.params.name);
// const entryName = `${collection.get('name')}/${ownProps.params.slug}`;
return { return {
collection: collection, collection: collection,
@ -28,4 +27,4 @@ function mapStateToProps(state, ownProps) {
}; };
} }
export default connect(mapStateToProps)(DashboardPage); export default connect(mapStateToProps)(EntryPage);