import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Card } from './UI';
import { statusDescriptions } from '../constants/publishModes';
export default class UnpublishedListing extends React.Component {
renderColumn(entries) {
if (!entries) return;
return (
{entries.map(entry => {
return {entry.getIn(['data', 'title'])}
;
}
)}
);
}
render() {
const { entries } = this.props;
const columns = entries.entrySeq().map(([key, currEntries]) => (
{statusDescriptions.get(key)}
{this.renderColumn(currEntries)}
));
return (
{columns}
);
}
}
UnpublishedListing.propTypes = {
entries: ImmutablePropTypes.map,
};
Drafts
Cool Recipe