Merge branch 'EbookFoundation:main' into main

pull/9/head
Brogan Clements 2022-03-24 21:18:46 -04:00 committed by GitHub
commit 201117ace3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ function App() {
<SearchBar changeParameter={changeParameter} />
<LangDropdown changeParameter={changeParameter} data={data} />
<SectDropdown className="sect-drop" changeParameter={changeParameter} data={data} value={searchParams['section'] || "allSects"}/>
<h3>Suggestions based on your search</h3>
{sectionResultsList && <h3>Suggestions based on your search</h3>}
<div className="search-results section-results">{sectionResultsList}</div>
</div>
</header>

View File

@ -4,7 +4,7 @@ function SearchResult({ data }) {
return (
<li class="result">
<a href={data.url} target="_blank" rel="noreferrer">
({data.lang.code}) {data.title} by {data.author ? data.author : "Unknown Author"}
({data.lang.code}) {data.title}{data.author ? ` by ${data.author}` : ""}
</a>
</li>
);