New: Show series info in author books table and book details

This commit is contained in:
ta264
2020-08-30 14:21:18 +01:00
parent 9139113d14
commit 3a12ae6956
7 changed files with 60 additions and 9 deletions
+4 -4
View File
@@ -71,7 +71,7 @@ class BookRow extends Component {
statistics,
releaseDate,
title,
position,
seriesTitle,
pageCount,
ratings,
isSaving,
@@ -129,13 +129,13 @@ class BookRow extends Component {
);
}
if (name === 'position') {
if (name === 'series') {
return (
<TableRowCell
key={name}
className={styles.title}
>
{position || ''}
{seriesTitle || ''}
</TableRowCell>
);
}
@@ -215,7 +215,7 @@ BookRow.propTypes = {
monitored: PropTypes.bool.isRequired,
releaseDate: PropTypes.string,
title: PropTypes.string.isRequired,
position: PropTypes.string,
seriesTitle: PropTypes.string.isRequired,
pageCount: PropTypes.number,
ratings: PropTypes.object.isRequired,
titleSlug: PropTypes.string.isRequired,
+6
View File
@@ -143,6 +143,7 @@ class BookDetails extends Component {
id,
titleSlug,
title,
seriesTitle,
pageCount,
overview,
statistics = {},
@@ -301,6 +302,10 @@ class BookDetails extends Component {
</div>
<div className={styles.details}>
<div>
{seriesTitle}
</div>
<div>
{
!!pageCount &&
@@ -510,6 +515,7 @@ BookDetails.propTypes = {
id: PropTypes.number.isRequired,
titleSlug: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
seriesTitle: PropTypes.string.isRequired,
pageCount: PropTypes.number,
overview: PropTypes.string,
statistics: PropTypes.object.isRequired,