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
@@ -9,6 +9,7 @@ function BookInteractiveSearchModal(props) {
isOpen,
bookId,
bookTitle,
authorName,
onModalClose
} = props;
@@ -22,6 +23,7 @@ function BookInteractiveSearchModal(props) {
<BookInteractiveSearchModalContent
bookId={bookId}
bookTitle={bookTitle}
authorName={authorName}
onModalClose={onModalClose}
/>
</Modal>
@@ -32,6 +34,7 @@ BookInteractiveSearchModal.propTypes = {
isOpen: PropTypes.bool.isRequired,
bookId: PropTypes.number.isRequired,
bookTitle: PropTypes.string.isRequired,
authorName: PropTypes.string.isRequired,
onModalClose: PropTypes.func.isRequired
};