content Cards refactor

This commit is contained in:
Cássio Zen
2016-07-12 17:03:39 -03:00
parent e9d72b07af
commit ea9923e0c8
6 changed files with 27 additions and 28 deletions

View File

@ -58,7 +58,7 @@ export default class EntryListing extends React.Component {
collection: collection,
onClick: browserHistory.push.bind(this, link),
text: entry.getIn(['data', collection.getIn(['card', 'text'])]),
media: entry.getIn(['data', collection.getIn(['card', 'media'])]),
image: entry.getIn(['data', collection.getIn(['card', 'image'])]),
});
}
@ -67,7 +67,7 @@ export default class EntryListing extends React.Component {
const name = collection.get('name');
return <div>
<h2>Listing entries!</h2>
<h2>Listing {name}</h2>
<div ref={(c) => this._entries = c}>
{entries.map((entry) => {
const path = `/collections/${name}/entries/${entry.get('slug')}`;