New: Search bar searches books as well as authors

This commit is contained in:
ta264
2021-09-01 21:04:39 +01:00
parent ba9f618405
commit c9cb0a9774
7 changed files with 175 additions and 56 deletions
@@ -8,7 +8,7 @@ import styles from './AuthorSearchResult.css';
function AuthorSearchResult(props) {
const {
match,
authorName,
name,
images,
tags
} = props;
@@ -31,7 +31,7 @@ function AuthorSearchResult(props) {
<div className={styles.titles}>
<div className={styles.title}>
{authorName}
{name}
</div>
{
@@ -52,7 +52,7 @@ function AuthorSearchResult(props) {
}
AuthorSearchResult.propTypes = {
authorName: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
images: PropTypes.arrayOf(PropTypes.object).isRequired,
tags: PropTypes.arrayOf(PropTypes.object).isRequired,
match: PropTypes.object.isRequired