Fixed: Show number in series on Series page

pull/755/head
ta264 4 years ago
parent 3d905e45ce
commit 9beafd5265

@ -72,6 +72,7 @@ class BookRow extends Component {
releaseDate, releaseDate,
title, title,
seriesTitle, seriesTitle,
position,
pageCount, pageCount,
ratings, ratings,
isSaving, isSaving,
@ -140,6 +141,17 @@ class BookRow extends Component {
); );
} }
if (name === 'position') {
return (
<TableRowCell
key={name}
className={styles.title}
>
{position || ''}
</TableRowCell>
);
}
if (name === 'rating') { if (name === 'rating') {
return ( return (
<TableRowCell key={name}> <TableRowCell key={name}>
@ -216,6 +228,7 @@ BookRow.propTypes = {
releaseDate: PropTypes.string, releaseDate: PropTypes.string,
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
seriesTitle: PropTypes.string.isRequired, seriesTitle: PropTypes.string.isRequired,
position: PropTypes.number,
pageCount: PropTypes.number, pageCount: PropTypes.number,
ratings: PropTypes.object.isRequired, ratings: PropTypes.object.isRequired,
titleSlug: PropTypes.string.isRequired, titleSlug: PropTypes.string.isRequired,

Loading…
Cancel
Save