Removed author from cards (author may not be an available field)
This commit is contained in:
parent
c3b4fd9013
commit
6ff7019e7c
@ -17,7 +17,6 @@ const ImageCard = (
|
||||
>
|
||||
<CardTitle
|
||||
title={text}
|
||||
subtitle={`by ${ author }`}
|
||||
/>
|
||||
{
|
||||
image && <CardMedia aspectRatio="wide">
|
||||
@ -33,7 +32,6 @@ const ImageCard = (
|
||||
);
|
||||
|
||||
ImageCard.propTypes = {
|
||||
author: PropTypes.string,
|
||||
image: PropTypes.string,
|
||||
onClick: PropTypes.func,
|
||||
onImageLoaded: PropTypes.func,
|
||||
|
@ -77,7 +77,6 @@ export default class EntryListing extends React.Component {
|
||||
const card = Cards[cardType] || Cards.unknown;
|
||||
return React.createElement(card, {
|
||||
key: entry.get('slug'),
|
||||
author: entry.getIn(['data', 'author']),
|
||||
collection,
|
||||
description: entry.getIn(['data', collection.getIn(['card', 'description'])]),
|
||||
image: entry.getIn(['data', collection.getIn(['card', 'image'])]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user