From f6ca0b0c4fb3c1e6d93a00fcce7cb0aee12930c0 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sat, 16 Mar 2024 00:34:04 +0000
Subject: ui(web): Add an editor card inline in the bookmark grid and remove
 the top nav buttons

---
 apps/web/components/dashboard/bookmarks/Bookmarks.tsx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

(limited to 'apps/web/components/dashboard/bookmarks/Bookmarks.tsx')

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>
   );
 }
-- 
cgit v1.2.3-70-g09d2

