mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: add beta tag to reminder in sidemenu
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -17,13 +17,10 @@ You should have received a copy of the GNU General Public License
|
||||
along 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";
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -131,7 +131,8 @@ export const MenuItemsList = [
|
||||
{
|
||||
name: "Reminders",
|
||||
icon: "bell",
|
||||
close: true
|
||||
close: true,
|
||||
isBeta:true
|
||||
},
|
||||
{
|
||||
name: "Monographs",
|
||||
|
||||
Reference in New Issue
Block a user