aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/add-note.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/app/dashboard/add-note.tsx')
-rw-r--r--apps/mobile/app/dashboard/add-note.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/mobile/app/dashboard/add-note.tsx b/apps/mobile/app/dashboard/add-note.tsx
index 40c97456..6b8f0fef 100644
--- a/apps/mobile/app/dashboard/add-note.tsx
+++ b/apps/mobile/app/dashboard/add-note.tsx
@@ -5,6 +5,8 @@ import { Button } from "@/components/ui/Button";
import { Input } from "@/components/ui/Input";
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>();
@@ -45,7 +47,10 @@ export default function AddNote() {
placeholder="What's on your mind?"
autoFocus
/>
- <Button onPress={() => mutate({ type: "text", text })} label="Add Note" />
+ <Button
+ onPress={() => mutate({ type: BookmarkTypes.TEXT, text })}
+ label="Add Note"
+ />
</View>
);
}