aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-04-08 03:56:19 -0700
committerMohamedBassem <me@mbassem.com>2025-04-08 03:56:19 -0700
commit0b769c3532551e9d0e7077703e4ea861a1179c66 (patch)
tree4bce655d22e2bc97ccb4504f1a84fce6dd133816 /apps/web
parent3207264fc13c275d6dcfbd2628cc6b3974ceeaed (diff)
downloadkarakeep-0b769c3532551e9d0e7077703e4ea861a1179c66.tar.zst
fix: Deprecate the updateBookmarkText trpc endpoint and replace it with updateBookmark
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx b/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx
index 60a6d634..9f7f2138 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx
@@ -3,7 +3,7 @@ import { MarkdownReadonly } from "@/components/ui/markdown/markdown-readonly";
import { toast } from "@/components/ui/use-toast";
import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks";
-import { useUpdateBookmarkText } from "@hoarder/shared-react/hooks/bookmarks";
+import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks";
export function BookmarkMarkdownComponent({
children: bookmark,
@@ -12,7 +12,7 @@ export function BookmarkMarkdownComponent({
children: ZBookmarkTypeText;
readOnly?: boolean;
}) {
- const { mutate: updateBookmarkMutator, isPending } = useUpdateBookmarkText({
+ const { mutate: updateBookmarkMutator, isPending } = useUpdateBookmark({
onSuccess: () => {
toast({
description: "Note updated!",