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/TopNav.tsx | 37 +---------------------
 1 file changed, 1 insertion(+), 36 deletions(-)

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

diff --git a/apps/web/components/dashboard/bookmarks/TopNav.tsx b/apps/web/components/dashboard/bookmarks/TopNav.tsx
index 4274762c..568af15d 100644
--- a/apps/web/components/dashboard/bookmarks/TopNav.tsx
+++ b/apps/web/components/dashboard/bookmarks/TopNav.tsx
@@ -1,44 +1,9 @@
-"use client";
-
-import { useState } from "react";
-import { Button } from "@/components/ui/button";
-import { Link, NotebookPen } from "lucide-react";
-
 import { SearchInput } from "../search/SearchInput";
-import { AddLinkButton } from "./AddLinkButton";
-import { BookmarkedTextEditor } from "./BookmarkedTextEditor";
-
-function AddText() {
-  const [isEditorOpen, setEditorOpen] = useState(false);
-
-  return (
-    <div className="flex">
-      <BookmarkedTextEditor open={isEditorOpen} setOpen={setEditorOpen} />
-      <Button className="m-auto" onClick={() => setEditorOpen(true)}>
-        <NotebookPen />
-      </Button>
-    </div>
-  );
-}
-
-function AddLink() {
-  return (
-    <div className="flex">
-      <AddLinkButton>
-        <Button className="m-auto">
-          <Link />
-        </Button>
-      </AddLinkButton>
-    </div>
-  );
-}
 
 export default function TopNav() {
   return (
-    <div className="container flex gap-2 py-4">
+    <div className="container py-4">
       <SearchInput />
-      <AddLink />
-      <AddText />
     </div>
   );
 }
-- 
cgit v1.2.3-70-g09d2

