This commit is contained in:
Mathias Biilmann Christensen
2016-05-30 17:13:40 -07:00
parent ba8febd107
commit 7601d3f5a1
5 changed files with 11 additions and 36 deletions

View File

@ -4,12 +4,6 @@ import { Map } from 'immutable';
import EntryEditor from '../components/EntryEditor';
class EntryPage extends React.Component {
componentDidMount() {
}
componentWillReceiveProps(nextProps) {
}
render() {
const { collection, entry } = this.props;
@ -18,13 +12,10 @@ class EntryPage extends React.Component {
}
function mapStateToProps(state, ownProps) {
const { collections } = state;
const { collections, media } = state;
const collection = collections.get(ownProps.params.name);
return {
collection: collection,
collections: collections
};
return {media, collection, collections};
}
export default connect(mapStateToProps)(EntryPage);