Skip to content

Commit

Permalink
💬 (search) update show more literals
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed Jan 5, 2024
1 parent ebcb4a6 commit 43e5d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ function ShowMore({
? numberShowing <= 2
? "Showing all results"
: `Showing all ${numberShowing} results`
: `Showing ${numberShowing} out of ${results.hits.length} results`
: `Showing ${numberShowing} of the top ${results.hits.length} results`

return (
<div className="search-results__show-more-container">
<em>{message}</em>
{!isShowingAllResults && (
<button onClick={handleClick}>Show all</button>
<button onClick={handleClick}>Show more</button>
)}
</div>
)
Expand Down

0 comments on commit 43e5d47

Please sign in to comment.