diff options
| author | MohamedBassem <me@mbassem.com> | 2025-04-08 03:56:19 -0700 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-04-08 03:56:19 -0700 |
| commit | 0b769c3532551e9d0e7077703e4ea861a1179c66 (patch) | |
| tree | 4bce655d22e2bc97ccb4504f1a84fce6dd133816 /apps/mobile | |
| parent | 3207264fc13c275d6dcfbd2628cc6b3974ceeaed (diff) | |
| download | karakeep-0b769c3532551e9d0e7077703e4ea861a1179c66.tar.zst | |
fix: Deprecate the updateBookmarkText trpc endpoint and replace it with updateBookmark
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx index 98158ab1..e89d572d 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx @@ -25,7 +25,7 @@ import { ClipboardList, Globe, Info, Tag, Trash2 } from "lucide-react-native"; import { useDeleteBookmark, - useUpdateBookmarkText, + useUpdateBookmark, } from "@hoarder/shared-react/hooks/bookmarks"; import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; @@ -174,7 +174,7 @@ function BookmarkTextView({ bookmark }: { bookmark: ZBookmark }) { const initialText = bookmark.content.text; const [content, setContent] = useState(initialText); - const { mutate, isPending } = useUpdateBookmarkText({ + const { mutate, isPending } = useUpdateBookmark({ onError: () => { toast({ message: "Something went wrong", |
