diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-17 08:43:10 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-17 08:43:10 +0000 |
| commit | 0b99fe783aaebc5baca40f9d1b837278811cd228 (patch) | |
| tree | c83fa0d3507d1a0e362d3444cf7eb6b4205f9760 /apps/web/components/dashboard/bookmarks/TextCard.tsx | |
| parent | 566486fbd98f81d81c266cda4c9750afa207dc7e (diff) | |
| download | karakeep-0b99fe783aaebc5baca40f9d1b837278811cd228.tar.zst | |
ui(web): Change TagsEditor to auto save on edit and extract ActionBar to its own component
Diffstat (limited to 'apps/web/components/dashboard/bookmarks/TextCard.tsx')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/TextCard.tsx | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/apps/web/components/dashboard/bookmarks/TextCard.tsx b/apps/web/components/dashboard/bookmarks/TextCard.tsx index 5028c1bb..75733063 100644 --- a/apps/web/components/dashboard/bookmarks/TextCard.tsx +++ b/apps/web/components/dashboard/bookmarks/TextCard.tsx @@ -1,17 +1,15 @@ "use client"; import { useState } from "react"; -import Link from "next/link"; import { isBookmarkStillTagging } from "@/lib/bookmarkUtils"; import { api } from "@/lib/trpc"; import { cn } from "@/lib/utils"; -import { Maximize2, Star } from "lucide-react"; import Markdown from "react-markdown"; import type { ZBookmark } from "@hoarder/trpc/types/bookmarks"; +import BookmarkActionBar from "./BookmarkActionBar"; import { BookmarkedTextViewer } from "./BookmarkedTextViewer"; -import BookmarkOptions from "./BookmarkOptions"; import TagList from "./TagList"; export default function TextCard({ @@ -71,24 +69,7 @@ export default function TextCard({ </div> <div className="flex w-full justify-between"> <div /> - <div className="flex gap-0 text-gray-500"> - <div> - {bookmark.favourited && ( - <Star - className="my-1 size-8 rounded p-1" - color="#ebb434" - fill="#ebb434" - /> - )} - </div> - <Link - className="my-auto block px-2" - href={`/dashboard/preview/${bookmark.id}`} - > - <Maximize2 size="20" /> - </Link> - <BookmarkOptions bookmark={bookmark} /> - </div> + <BookmarkActionBar bookmark={bookmark} /> </div> </div> </> |
