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: add beta tag to reminder in sidemenu
ammarahm-edce3e1cdd3619
diff --git a/apps/mobile/app/common/database/index.js b/apps/mobile/app/common/database/index.jsindex dfbf4636f..1690250f4 100644--- a/apps/mobile/app/common/database/index.js+++ b/apps/mobile/app/common/database/index.js@@ -49,16 +49,16 @@ export var db = new Database(db.host(__DEV__? {- // API_HOST: "https://api.notesnook.com",- // AUTH_HOST: "https://auth.streetwriters.co",- // SSE_HOST: "https://events.streetwriters.co",- // SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",- // ISSUES_HOST: "https://issues.streetwriters.co"- API_HOST: "http://192.168.8.101:5264",- AUTH_HOST: "http://192.168.8.101:8264",- SSE_HOST: "http://192.168.8.101:7264",- SUBSCRIPTIONS_HOST: "http://192.168.8.101:9264",- ISSUES_HOST: "http://192.168.8.101:2624"+ API_HOST: "https://api.notesnook.com",+ AUTH_HOST: "https://auth.streetwriters.co",+ SSE_HOST: "https://events.streetwriters.co",+ SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",+ ISSUES_HOST: "https://issues.streetwriters.co"+ // API_HOST: "http://192.168.8.101:5264",+ // AUTH_HOST: "http://192.168.8.101:8264",+ // SSE_HOST: "http://192.168.8.101:7264",+ // SUBSCRIPTIONS_HOST: "http://192.168.8.101:9264",+ // ISSUES_HOST: "http://192.168.8.101:2624"}: {API_HOST: "https://api.notesnook.com",diff --git a/apps/mobile/app/components/list-items/note/index.js b/apps/mobile/app/components/list-items/note/index.jsindex fe49f45b0..db554137b 100644--- a/apps/mobile/app/components/list-items/note/index.js+++ b/apps/mobile/app/components/list-items/note/index.js@@ -17,13 +17,10 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import {- formatReminderTime,- getUpcomingReminder-} from "@notesnook/core/collections/reminders";+import { getUpcomingReminder } from "@notesnook/core/collections/reminders";import { decode, EntityLevel } from "entities";import React from "react";-import { TouchableOpacity, View } from "react-native";+import { View } from "react-native";import Icon from "react-native-vector-icons/MaterialCommunityIcons";import { notesnook } from "../../../../e2e/test.ids";import { db } from "../../../common/database";diff --git a/apps/mobile/app/components/side-menu/menu-item.js b/apps/mobile/app/components/side-menu/menu-item.jsindex cc979b584..bb331f1f7 100644--- a/apps/mobile/app/components/side-menu/menu-item.js+++ b/apps/mobile/app/components/side-menu/menu-item.js@@ -123,6 +123,22 @@ export const MenuItem = React.memo() : (<Paragraph size={SIZE.md}>{item.name}</Paragraph>)}+ {item.isBeta ? (+ <View+ style={{+ backgroundColor: colors.accent,+ borderRadius: 100,+ paddingHorizontal: 4,+ paddingVertical: 2,+ marginLeft: 2,+ marginTop: -10+ }}+ >+ <Paragraph color={colors.light} size={SIZE.xxs}>+ BETA+ </Paragraph>+ </View>+ ) : null}</View>{item.switch ? (diff --git a/apps/mobile/app/components/tabs/index.tsx b/apps/mobile/app/components/tabs/index.tsxindex 7a58ebdb1..913fa0c02 100644--- a/apps/mobile/app/components/tabs/index.tsx+++ b/apps/mobile/app/components/tabs/index.tsx@@ -55,8 +55,8 @@ export interface TabsRef {goToIndex: (index: number, animated?: boolean) => 0 | undefined;unlock: () => boolean;lock: () => boolean;- openDrawer: (animated: boolean) => void;- closeDrawer: (animated: boolean) => void;+ openDrawer: (animated?: boolean) => void;+ closeDrawer: (animated?: boolean) => void;page: number;setScrollEnabled: () => true;isDrawerOpen: () => boolean;diff --git a/apps/mobile/app/utils/constants.js b/apps/mobile/app/utils/constants.jsindex d76e81478..4c03536ca 100644--- a/apps/mobile/app/utils/constants.js+++ b/apps/mobile/app/utils/constants.js@@ -131,7 +131,8 @@ export const MenuItemsList = [{name: "Reminders",icon: "bell",- close: true+ close: true,+ isBeta:true},{name: "Monographs",