feat: implement search functionality with results display, add search input component, and update API for search results

This commit is contained in:
2025-09-07 12:54:39 +02:00
parent 69eb225c1e
commit c9b8bd7b07
7 changed files with 171 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export function PostThoughtForm() {
toast.success("Your thought has been posted!");
form.reset();
router.refresh(); // This is the key to updating the feed
} catch (err) {
} catch {
toast.error("Failed to post thought. Please try again.");
}
}