aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-08-31 14:56:59 +0100
committerMohamedBassem <me@mbassem.com>2025-08-31 14:56:59 +0100
commit1e0cce7e6f79ccea00fc740aabc2b05918d17984 (patch)
tree8891f57072c4f4dd9f397d83618f756a24157557 /apps/mobile
parent50d426f777efd1f37b673449ccd4b1a56b8fc1d2 (diff)
downloadkarakeep-1e0cce7e6f79ccea00fc740aabc2b05918d17984.tar.zst
fix(mobile): Disable the save button when bookmark is being saved
Diffstat (limited to 'apps/mobile')
-rw-r--r--apps/mobile/app/dashboard/bookmarks/new.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/new.tsx b/apps/mobile/app/dashboard/bookmarks/new.tsx
index 50f8f2a7..51db6d97 100644
--- a/apps/mobile/app/dashboard/bookmarks/new.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/new.tsx
@@ -19,7 +19,7 @@ const NoteEditorPage = () => {
const [error, setError] = useState<string | undefined>();
const { toast } = useToast();
- const { mutate: createBookmark } = useCreateBookmark({
+ const { mutate: createBookmark, isPending } = useCreateBookmark({
onSuccess: (resp) => {
if (resp.alreadyExists) {
toast({
@@ -69,7 +69,7 @@ const NoteEditorPage = () => {
autoCapitalize={"none"}
textAlignVertical="top"
/>
- <Button onPress={onSubmit}>
+ <Button onPress={onSubmit} disabled={isPending}>
<Text>Save</Text>
</Button>
</View>