Merge branch 'EbookFoundation:main' into main
commit
201117ace3
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue