mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: simplify user data access
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import React from "react";
|
||||
import { Flex, Box, Text } from "rebass";
|
||||
import { SUBSCRIPTION_STATUS } from "../../common";
|
||||
import { useStore as useUserStore } from "../../stores/user-store";
|
||||
|
||||
function Menu(props) {
|
||||
const isTrial = useUserStore(
|
||||
(store) => store.user?.notesnook?.subscription?.isTrial
|
||||
(store) => store.user?.subscription?.status === SUBSCRIPTION_STATUS.TRIAL
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user