diff options
| author | MohamedBassem <me@mbassem.com> | 2025-08-24 16:11:36 +0300 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-08-24 18:35:05 +0300 |
| commit | eb54bf4432d4554f33f8811650ad77cc028f31fd (patch) | |
| tree | 0a440cd1e40c8bc09715c056a1ba4b4c0687d4d8 /apps | |
| parent | 5d502f519a9e6cac4d8ed17d04457e16c65ce3a3 (diff) | |
| download | karakeep-eb54bf4432d4554f33f8811650ad77cc028f31fd.tar.zst | |
feat(mobile): Add edit menu item to bookmark card
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/mobile/components/bookmarks/BookmarkCard.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx index 67448433..461967b4 100644 --- a/apps/mobile/components/bookmarks/BookmarkCard.tsx +++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx @@ -198,14 +198,16 @@ function ActionBar({ bookmark }: { bookmark: ZBookmark }) { router.push(`/dashboard/bookmarks/${bookmark.id}/manage_lists`); } else if (nativeEvent.event === "manage_tags") { router.push(`/dashboard/bookmarks/${bookmark.id}/manage_tags`); + } else if (nativeEvent.event === "edit") { + router.push(`/dashboard/bookmarks/${bookmark.id}/info`); } }} actions={[ { - id: "archive", - title: bookmark.archived ? "Un-archive" : "Archive", + id: "edit", + title: "Edit", image: Platform.select({ - ios: "folder", + ios: "pencil", }), }, { @@ -223,6 +225,13 @@ function ActionBar({ bookmark }: { bookmark: ZBookmark }) { }), }, { + id: "archive", + title: bookmark.archived ? "Un-archive" : "Archive", + image: Platform.select({ + ios: "folder", + }), + }, + { id: "delete", title: "Delete", attributes: { |
