diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-16 00:34:04 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-16 00:34:04 +0000 |
| commit | f6ca0b0c4fb3c1e6d93a00fcce7cb0aee12930c0 (patch) | |
| tree | 126c6d26acb640dc35d953607459df7b0fce3a88 /apps/web/components/dashboard/bookmarks/Bookmarks.tsx | |
| parent | 8f9c9036afbd036688cd2805d27328895926a8d9 (diff) | |
| download | karakeep-f6ca0b0c4fb3c1e6d93a00fcce7cb0aee12930c0.tar.zst | |
ui(web): Add an editor card inline in the bookmark grid and remove the top nav buttons
Diffstat (limited to 'apps/web/components/dashboard/bookmarks/Bookmarks.tsx')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/Bookmarks.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/web/components/dashboard/bookmarks/Bookmarks.tsx b/apps/web/components/dashboard/bookmarks/Bookmarks.tsx index 9f001551..601b1627 100644 --- a/apps/web/components/dashboard/bookmarks/Bookmarks.tsx +++ b/apps/web/components/dashboard/bookmarks/Bookmarks.tsx @@ -11,7 +11,12 @@ export default async function Bookmarks({ archived, title, showDivider, -}: ZGetBookmarksRequest & { title: string; showDivider?: boolean }) { + showEditorCard = false, +}: ZGetBookmarksRequest & { + title: string; + showDivider?: boolean; + showEditorCard?: boolean; +}) { const session = await getServerAuthSession(); if (!session) { redirect("/"); @@ -28,7 +33,11 @@ export default async function Bookmarks({ <div className="container flex flex-col gap-3"> <div className="text-2xl">{title}</div> {showDivider && <hr />} - <BookmarksGrid query={query} bookmarks={bookmarks.bookmarks} /> + <BookmarksGrid + query={query} + bookmarks={bookmarks.bookmarks} + showEditorCard={showEditorCard} + /> </div> ); } |
