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
fix: hide pro label when user becomes pro member
thecodrrc73ad7a82df5
diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.jsindex 4c6aa61ad..23994baef 100644--- a/apps/web/src/components/menu/index.js+++ b/apps/web/src/components/menu/index.js@@ -3,7 +3,6 @@ import { Flex, Box, Text } from "rebass";import { useStore as useUserStore } from "../../stores/user-store";function Menu(props) {- const isPremium = useUserStore((store) => store.user.isPremium);const isTrial = useUserStore((store) => store.user?.notesnook?.subscription?.isTrial);@@ -44,13 +43,7 @@ function Menu(props) {if (props.closeMenu) {props.closeMenu();}-- const onlyPro = item.onlyPro && isTrial === undefined;- if (onlyPro) {- // TODO- } else if (item.onClick) {- item.onClick(props.data);- }+ item.onClick(props.data);}}flexDirection="row"alignItems="center"@@ -72,7 +65,7 @@ function Menu(props) {{item.title}</Text>)}- {item.onlyPro && !isPremium && (+ {item.onlyPro && isTrial === undefined && (<TextfontSize="menu"bg="primary"