New: Add page count to author books page

Fixes #408
This commit is contained in:
ta264
2020-08-29 16:08:30 +01:00
parent 4adffff5ba
commit 7fe8702584
2 changed files with 22 additions and 3 deletions
+12
View File
@@ -72,6 +72,7 @@ class BookRow extends Component {
releaseDate,
title,
position,
pageCount,
ratings,
isSaving,
authorMonitored,
@@ -161,6 +162,16 @@ class BookRow extends Component {
);
}
if (name === 'pageCount') {
return (
<TableRowCell
key={name}
>
{pageCount || ''}
</TableRowCell>
);
}
if (name === 'status') {
return (
<TableRowCell
@@ -205,6 +216,7 @@ BookRow.propTypes = {
releaseDate: PropTypes.string,
title: PropTypes.string.isRequired,
position: PropTypes.string,
pageCount: PropTypes.number,
ratings: PropTypes.object.isRequired,
titleSlug: PropTypes.string.isRequired,
isSaving: PropTypes.bool,