search working

This commit is contained in:
tejaspanchall
2025-06-05 17:47:41 +05:30
parent 39d9db24cd
commit 9b6de000e7
6 changed files with 173 additions and 92 deletions

View File

@@ -60,7 +60,8 @@ export default function Navbar() {
setSearchSuggestions([{
id: searchQuery.toLowerCase().replace(/\s+/g, '-'),
title: `Search for "${searchQuery}"`,
type: "SEARCH"
type: "SEARCH",
image: null
}]);
}
} catch (error) {
@@ -69,7 +70,8 @@ export default function Navbar() {
setSearchSuggestions([{
id: searchQuery.toLowerCase().replace(/\s+/g, '-'),
title: `Search for "${searchQuery}"`,
type: "SEARCH"
type: "SEARCH",
image: null
}]);
} finally {
setIsLoading(false);