diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-02 13:07:50 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-02 13:07:50 +0000 |
| commit | eeae96553c204097dec8a3c35d86533b3ce055d9 (patch) | |
| tree | ec129424f6042a00da97550655efced3e565da1a /packages/web/app/dashboard/bookmarks/components | |
| parent | 64f75a0fb010d4a12086b839cc9d80ed011aa2b3 (diff) | |
| download | karakeep-eeae96553c204097dec8a3c35d86533b3ce055d9.tar.zst | |
ui: Move favourites and archive to act as a predefined list
Diffstat (limited to 'packages/web/app/dashboard/bookmarks/components')
| -rw-r--r-- | packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
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 ( - <> - <div className="container pb-4 text-2xl">{title}</div> - <div className="container"> - <BookmarksGrid query={query} bookmarks={bookmarks.bookmarks} /> - </div> - </> + <div className="container flex flex-col gap-3"> + <div className="text-2xl">{title}</div> + {showDivider && <hr />} + <BookmarksGrid query={query} bookmarks={bookmarks.bookmarks} /> + </div> ); } |
