From 24e1dbe8d4c5b3945a128684d63ef84049324765 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 28 Feb 2024 22:32:01 +0000 Subject: feature: Add support for markdown in the text bookmarks --- .../bookmarks/components/BookmarkOptions.tsx | 2 +- .../bookmarks/components/BookmarkedTextEditor.tsx | 18 ++--- .../bookmarks/components/BookmarkedTextViewer.tsx | 21 ++++++ .../dashboard/bookmarks/components/TextCard.tsx | 76 ++++++++++++++-------- packages/web/package.json | 2 + packages/web/tailwind.config.ts | 2 +- 6 files changed, 84 insertions(+), 37 deletions(-) create mode 100644 packages/web/app/dashboard/bookmarks/components/BookmarkedTextViewer.tsx (limited to 'packages') diff --git a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx index 866a4cbd..3a2b6b35 100644 --- a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx +++ b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx @@ -86,7 +86,7 @@ export default function BookmarkOptions({ bookmark }: { bookmark: ZBookmark }) { diff --git a/packages/web/app/dashboard/bookmarks/components/BookmarkedTextEditor.tsx b/packages/web/app/dashboard/bookmarks/components/BookmarkedTextEditor.tsx index e9138e03..a6df8737 100644 --- a/packages/web/app/dashboard/bookmarks/components/BookmarkedTextEditor.tsx +++ b/packages/web/app/dashboard/bookmarks/components/BookmarkedTextEditor.tsx @@ -3,6 +3,7 @@ import { Dialog, DialogClose, DialogContent, + DialogDescription, DialogFooter, DialogHeader, DialogTitle, @@ -83,15 +84,16 @@ export function BookmarkedTextEditor({ - - {isNewBookmark ? "New Note" : "Edit Note"} - -