mobile: add beta tag to reminder in sidemenu

This commit is contained in:
ammarahm-ed
2023-01-12 10:35:28 +05:00
parent 4ee9593bac
commit ce3e1cdd36
5 changed files with 32 additions and 18 deletions

View File

@@ -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",

View File

@@ -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";

View File

@@ -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 ? (

View File

@@ -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;

View File

@@ -131,7 +131,8 @@ export const MenuItemsList = [
{
name: "Reminders",
icon: "bell",
close: true
close: true,
isBeta:true
},
{
name: "Monographs",