Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: update settings

ammarahm-ed377bd6e510ae
diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsx
index c5f95962b..9aa5311a8 100644
--- a/apps/mobile/app/screens/settings/settings-data.tsx
+++ b/apps/mobile/app/screens/settings/settings-data.tsx
@@ -820,11 +820,11 @@ export const settingsGroups: SettingSection[] = [
description: "Manage and configure reminders in app",
sections: [
{
- id: "disable-reminders",
- property: "disableReminderNotifications",
+ id: "enable-reminders",
+ property: "reminderNotifications",
type: "switch",
- name: "Turn off reminder notifications",
- icon: "bell-cancel-outline",
+ name: "Reminder notifications",
+ icon: "bell-outline",
onChange: (property) => {
if (property) {
Notifications.setupReminders();
@@ -833,7 +833,7 @@ export const settingsGroups: SettingSection[] = [
}
},
description:
- "Disable reminder notifications on this device, this is useful when you have Notesnook on multiple devices & want to recieve reminder notifications only on your primary device."
+ "Controls whether this device should receive reminder notifications."
},
{
id: "snooze-time",
diff --git a/apps/mobile/app/stores/use-setting-store.ts b/apps/mobile/app/stores/use-setting-store.ts
index c51aa3c39..434ec2165 100644
--- a/apps/mobile/app/stores/use-setting-store.ts
+++ b/apps/mobile/app/stores/use-setting-store.ts
@@ -65,7 +65,7 @@ export type Settings = {
doubleSpacedLines?: boolean;
disableAutoSync?: boolean;
disableSync?: boolean;
- disableReminderNotifications?: boolean;
+ reminderNotifications?: boolean;
defaultSnoozeTime?: string;
};
@@ -139,7 +139,7 @@ export const useSettingStore = create<SettingStore>((set) => ({
sessionExpired: false,
version: null,
doubleSpacedLines: true,
- disableReminderNotifications: false,
+ reminderNotifications: true,
defaultSnoozeTime: "5"
},
sheetKeyboardHandler: true,