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
web: add beta tag on reminders
Abdullah Atta29f3dafc4f73
diff --git a/apps/web/src/components/navigation-menu/index.tsx b/apps/web/src/components/navigation-menu/index.tsxindex 12d1912c8..3c7f08d6b 100644--- a/apps/web/src/components/navigation-menu/index.tsx+++ b/apps/web/src/components/navigation-menu/index.tsx@@ -53,7 +53,7 @@ type Route = {title: string;path: string;icon: Icon;- isNew?: boolean;+ tag?: string;};const navigationHistory = new Map();@@ -92,7 +92,8 @@ const routes: Route[] = [{title: "Reminders",path: "/reminders",- icon: Reminders+ icon: Reminders,+ tag: "Beta"},{ title: "Trash", path: "/trash", icon: Trash }];@@ -169,7 +170,7 @@ function NavigationMenu(props: NavigationMenuProps) {key={item.path}title={item.title}icon={item.icon}- isNew={item.isNew}+ tag={item.tag}selected={item.path === "/"? location === item.pathdiff --git a/apps/web/src/components/navigation-menu/navigation-item.tsx b/apps/web/src/components/navigation-menu/navigation-item.tsxindex 834c4147c..ba00a93f5 100644--- a/apps/web/src/components/navigation-menu/navigation-item.tsx+++ b/apps/web/src/components/navigation-menu/navigation-item.tsx@@ -23,7 +23,7 @@ import { useMenuTrigger } from "../../hooks/use-menu";import useMobile from "../../hooks/use-mobile";import { PropsWithChildren } from "react";import { Theme } from "@notesnook/theme";-import { Icon, Circle, Shortcut } from "../icons";+import { Icon, Shortcut } from "../icons";type NavigationItemProps = {icon: Icon;@@ -32,7 +32,7 @@ type NavigationItemProps = {isTablet?: boolean;isLoading?: boolean;isShortcut?: boolean;- isNew?: boolean;+ tag?: string;selected?: boolean;onClick?: () => void;count?: number;@@ -47,7 +47,7 @@ function NavigationItem(props: PropsWithChildren<NavigationItemProps>) {title,isLoading,isShortcut,- isNew,+ tag,children,isTablet,selected,@@ -102,13 +102,6 @@ function NavigationItem(props: PropsWithChildren<NavigationItemProps>) {color={color || (selected ? "primary" : "icon")}rotate={isLoading}/>- {isNew && (- <Circle- size={6}- sx={{ position: "absolute", bottom: "8px", left: "23px" }}- color={"primary"}- />- )}{isShortcut && (<Shortcutsize={8}@@ -132,6 +125,21 @@ function NavigationItem(props: PropsWithChildren<NavigationItemProps>) {data-test-id="title">{title}+ {tag && (+ <Text+ variant="subBody"+ as="span"+ sx={{+ bg: "primary",+ color: "static",+ ml: 1,+ px: "small",+ borderRadius: "default"+ }}+ >+ {tag}+ </Text>+ )}</Text></Button>{children ? (