From 0b99fe783aaebc5baca40f9d1b837278811cd228 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 17 Mar 2024 08:43:10 +0000
Subject: ui(web): Change TagsEditor to auto save on edit and extract ActionBar
 to its own component

---
 apps/web/components/dashboard/bookmarks/LinkCard.tsx | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

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

diff --git a/apps/web/components/dashboard/bookmarks/LinkCard.tsx b/apps/web/components/dashboard/bookmarks/LinkCard.tsx
index 808e6d91..20f4dd79 100644
--- a/apps/web/components/dashboard/bookmarks/LinkCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/LinkCard.tsx
@@ -15,11 +15,10 @@ import {
   isBookmarkStillTagging,
 } from "@/lib/bookmarkUtils";
 import { api } from "@/lib/trpc";
-import { Maximize2, Star } from "lucide-react";
 
 import type { ZBookmark } from "@hoarder/trpc/types/bookmarks";
 
-import BookmarkOptions from "./BookmarkOptions";
+import BookmarkActionBar from "./BookmarkActionBar";
 import TagList from "./TagList";
 
 export default function LinkCard({
@@ -92,22 +91,7 @@ export default function LinkCard({
                 {parsedUrl.host}
               </Link>
             </div>
-            <div className="flex">
-              {bookmark.favourited && (
-                <Star
-                  className="m-1 size-8 rounded p-1"
-                  color="#ebb434"
-                  fill="#ebb434"
-                />
-              )}
-              <Link
-                className="my-auto block px-2"
-                href={`/dashboard/preview/${bookmark.id}`}
-              >
-                <Maximize2 size="20" />
-              </Link>
-              <BookmarkOptions bookmark={bookmark} />
-            </div>
+            <BookmarkActionBar bookmark={bookmark} />
           </div>
         </ImageCardFooter>
       </ImageCardContent>
-- 
cgit v1.2.3-70-g09d2

