diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.js index 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} )} - {item.onlyPro && !isPremium && ( + {item.onlyPro && isTrial === undefined && (