import React from 'react'; import { connect } from 'react-redux'; import { Map } from 'immutable'; import EntryEditor from '../components/EntryEditor'; class DashboardPage extends React.Component { componentDidMount() { } componentWillReceiveProps(nextProps) { } render() { const { collection, entry } = this.props; return ; } } 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, collections: collections }; } export default connect(mapStateToProps)(DashboardPage);