From eeae96553c204097dec8a3c35d86533b3ce055d9 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 2 Mar 2024 13:07:50 +0000 Subject: ui: Move favourites and archive to act as a predefined list --- .../web/app/dashboard/bookmarks/components/Bookmarks.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/web/app/dashboard/bookmarks/components') diff --git a/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx b/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx index d704b9d6..62b93dc8 100644 --- a/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx +++ b/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx @@ -8,7 +8,8 @@ export default async function Bookmarks({ favourited, archived, title, -}: ZGetBookmarksRequest & { title: string }) { + showDivider, +}: ZGetBookmarksRequest & { title: string; showDivider?: boolean }) { const session = await getServerAuthSession(); if (!session) { redirect("/"); @@ -22,11 +23,10 @@ export default async function Bookmarks({ const bookmarks = await api.bookmarks.getBookmarks(query); return ( - <> -
{title}
-
- -
- +
+
{title}
+ {showDivider &&
} + +
); } -- cgit v1.2.3-70-g09d2