From 93205fdb4e7f9d056909a49d07f52e7224304223 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Mon, 25 Aug 2025 05:38:06 +0500 Subject: [PATCH] anix/fix: search in bookmarks, user collections, user favorites, user history --- app/discover/page.tsx | 12 ++++++++++++ app/pages/BookmarksCategory.tsx | 6 ++++-- app/pages/Collections.tsx | 4 +++- app/pages/Discover.tsx | 19 +++++++++++++++++++ app/pages/Favorites.tsx | 19 ++++++++++--------- app/pages/History.tsx | 14 +++++++------- 6 files changed, 55 insertions(+), 19 deletions(-) create mode 100644 app/discover/page.tsx create mode 100644 app/pages/Discover.tsx diff --git a/app/discover/page.tsx b/app/discover/page.tsx new file mode 100644 index 0000000..448f517 --- /dev/null +++ b/app/discover/page.tsx @@ -0,0 +1,12 @@ +import { DiscoverPage } from "#/pages/Discover"; + +export const metadata = { + title: "Обзор", + description: "Рекомендации и популярное", +}; + +export const dynamic = "force-static"; + +export default function Discover() { + return ; +} diff --git a/app/pages/BookmarksCategory.tsx b/app/pages/BookmarksCategory.tsx index b53b3fa..3590e50 100644 --- a/app/pages/BookmarksCategory.tsx +++ b/app/pages/BookmarksCategory.tsx @@ -82,7 +82,7 @@ export function BookmarksCategoryPage(props: any) { ); - }; + } if (error) { return ( @@ -105,7 +105,9 @@ export function BookmarksCategoryPage(props: any) { className="flex-1 max-w-full mx-4" onSubmit={(e) => { e.preventDefault(); - router.push(`/search?q=${searchVal}&where=list&list=${props.slug}`); + router.push( + `/search?query=${searchVal}¶ms={"where"%3A"list"%2C"searchBy"%3A"${props.slug}"}` + ); }} >