From b17abd644e45628ac2d251c40a289cbc6301aad9 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:27:18 +0100 Subject: [PATCH] fix search messages --- apps/client/src/features/search/search-spotlight.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/search/search-spotlight.tsx b/apps/client/src/features/search/search-spotlight.tsx index 261e8ae..4fff8c1 100644 --- a/apps/client/src/features/search/search-spotlight.tsx +++ b/apps/client/src/features/search/search-spotlight.tsx @@ -50,8 +50,14 @@ export function SearchSpotlight() { } /> - {items.length > 0 ? items : No results found...} + {query.length === 0 && items.length === 0 && Start typing to search...} + + {query.length > 0 && items.length === 0 && No results found...} + + {items.length > 0 && items} + +