Skip to content

Commit

Permalink
add condition for filter
Browse files Browse the repository at this point in the history
  • Loading branch information
hemarina committed Oct 18, 2023
1 parent 02d76c2 commit 9934f1c
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,25 @@ function ShowcaseCardEmptyResult({ id }: { id: string }) {
gap: "10px",
}}
>
<Text size={500} weight="bold" align="center">
We couldn’t find any results for '{InputValue}'
</Text>
<Text size={400} align="center">
Check for spelling or try searching for another term.
</Text>
{InputValue != null ? (
<>
<Text size={500} weight="bold" align="center">
We couldn’t find any results for '{InputValue}'
</Text>
<Text size={400} align="center">
Check for spelling or try searching for another term.
</Text>
</>
) : (
<>
<Text size={500} weight="bold" align="center">
We couldn’t find any results.
</Text>
<Text size={400} align="center">
Check for tags or try filtering for another tag.
</Text>
</>
)}
</div>
<div
style={{
Expand Down

0 comments on commit 9934f1c

Please sign in to comment.