diff --git a/frontend/src/pages/Posts.tsx b/frontend/src/pages/Posts.tsx index 443c914..ef98dd9 100644 --- a/frontend/src/pages/Posts.tsx +++ b/frontend/src/pages/Posts.tsx @@ -210,54 +210,58 @@ const Posts = () => { )} -
-
- Sort by: - handleSortChange(e.target.value)} + className="p-2 rounded-md text-[#000435] bg-white dark:text-white dark:bg-[#000435] border border-sky-400 focus:outline-none focus:ring-2 focus:ring-blue-500 mr-4" + > + -
- setSearchQuery(e.target.value)} - placeholder="🔍 Search anything" - className="p-2 w-full max-w-xs rounded-md text-[#000435] bg-white dark:text-white dark:bg-[#000435] border border-sky-400 focus:outline-none focus:ring-2 focus:ring-blue-500" - onKeyDown={(event) => { - if (event.key == "Enter") { - handleSearch() - } - }} - /> - +
+ + {showSuggestions && suggestions.length > 0 && ( + + )} + {filteredPosts.length === 0 ? (
No Posts