aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/add-link.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/app/dashboard/add-link.tsx')
-rw-r--r--apps/mobile/app/dashboard/add-link.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/mobile/app/dashboard/add-link.tsx b/apps/mobile/app/dashboard/add-link.tsx
index 5096a9e7..d9773fb4 100644
--- a/apps/mobile/app/dashboard/add-link.tsx
+++ b/apps/mobile/app/dashboard/add-link.tsx
@@ -6,6 +6,8 @@ import { Input } from "@/components/ui/Input";
import { useToast } from "@/components/ui/Toast";
import { api } from "@/lib/trpc";
+import { BookmarkTypes } from "@hoarder/shared/types/bookmarks";
+
export default function AddNote() {
const [text, setText] = useState("");
const [error, setError] = useState<string | undefined>();
@@ -54,7 +56,7 @@ export default function AddNote() {
autoFocus
/>
<Button
- onPress={() => mutate({ type: "link", url: text })}
+ onPress={() => mutate({ type: BookmarkTypes.LINK, url: text })}
label="Add Link"
/>
</View>