A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: refactor
Ammar Ahmed2d32e85a6476
diff --git a/apps/mobile/app/screens/add-reminder/index.tsx b/apps/mobile/app/screens/add-reminder/index.tsxindex 79289f996..6e8a757d9 100644--- a/apps/mobile/app/screens/add-reminder/index.tsx+++ b/apps/mobile/app/screens/add-reminder/index.tsx@@ -73,15 +73,6 @@ const RecurringModes = {const WeekDays = [0, 1, 2, 3, 4, 5, 6];const WeekDaysMon = [1, 2, 3, 4, 5, 6, 0];const MonthDays = new Array(31).fill(true);-const WeekDayNames = {- 0: "Sunday",- 1: "Monday",- 2: "Tuesday",- 3: "Wednesday",- 4: "Thursday",- 5: "Friday",- 6: "Saturday"-};const ReminderNotificationModes = {Silent: "silent",@@ -153,7 +144,8 @@ export default function AddReminder(props: NavigationProps<"AddReminder">) {const isSecondLast = index === selectedDays.length - 2;const joinWith = isSecondLast ? " & " : isLast ? "" : ", ";return recurringMode === RecurringModes.Week- ? strings.weekDayNames[day as keyof typeof WeekDayNames]() + joinWith+ ? strings.weekDayNames[day as keyof typeof strings.weekDayNames]() ++ joinWith: `${day}${nth(day)} ${joinWith}`;}).join("");