Skip to content

Commit

Permalink
fix search view term
Browse files Browse the repository at this point in the history
  • Loading branch information
nahbee10 committed Nov 7, 2024
1 parent 09cc268 commit 71d1534
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
37 changes: 23 additions & 14 deletions assets/shared-bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions assets/tailwind-output.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/modules/search-result-page/SearchResultPageModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,20 @@ export const SearchResultPageModule: FC<Props> = ({ searchPageData }) => {
]}
/>
<h1 className="search-results-subheading heading-2 text-light-neutral-1 dark:text-dark-neutral-1 mt-[1.92rem]">
{results ? (
{results && results.length > 0 ? (
<>
{results.length} results for "{query}"
</>
) : (
<div className="no-results">
<div className="headline heading-2 text-light-neutral-1 dark:text-dark-neutral-1">
No result for {query}
No result for "{query}"
</div>
</div>
)}
</h1>
<div ref={searchBarRef} />
{results ? (
{results && results.length > 0 ? (
<ul className="search-results-list">
{results.map((result) => (
<li key={result.url}>
Expand Down

0 comments on commit 71d1534

Please sign in to comment.