New: Append author name to Interactive Search header

Closes #3343
This commit is contained in:
Bogdan
2024-03-06 07:56:40 +02:00
parent d6c631457c
commit 5e7e0eb50b
6 changed files with 20 additions and 2 deletions
+3
View File
@@ -38,6 +38,7 @@ class BookSearchCell extends Component {
const {
bookId,
bookTitle,
authorName,
isSearching,
onSearchPress,
...otherProps
@@ -60,6 +61,7 @@ class BookSearchCell extends Component {
isOpen={this.state.isDetailsModalOpen}
bookId={bookId}
bookTitle={bookTitle}
authorName={authorName}
onModalClose={this.onDetailsModalClose}
{...otherProps}
/>
@@ -73,6 +75,7 @@ BookSearchCell.propTypes = {
bookId: PropTypes.number.isRequired,
authorId: PropTypes.number.isRequired,
bookTitle: PropTypes.string.isRequired,
authorName: PropTypes.string.isRequired,
isSearching: PropTypes.bool.isRequired,
onSearchPress: PropTypes.func.isRequired
};