diff --git a/apps/mobile/app/components/sheets/paywall/index.tsx b/apps/mobile/app/components/sheets/paywall/index.tsx index f6fc00ae9..a0a35ced6 100644 --- a/apps/mobile/app/components/sheets/paywall/index.tsx +++ b/apps/mobile/app/components/sheets/paywall/index.tsx @@ -22,6 +22,7 @@ import AppIcon from "../../ui/AppIcon"; import { Button } from "../../ui/button"; import Heading from "../../ui/typography/heading"; import Paragraph from "../../ui/typography/paragraph"; +import { SubscriptionProvider } from "@notesnook/core"; const isGithubRelease = Config.GITHUB_RELEASE === "true"; const INDEX_TO_PLAN = { 1: "essential", @@ -52,6 +53,11 @@ export default function PaywallSheet(props: { } }, []); + const isSubscribedOnWeb = + pricingPlans.user?.subscription.provider === SubscriptionProvider.PADDLE || + pricingPlans.user?.subscription.provider === + SubscriptionProvider.STREETWRITERS; + return !pricingPlans.currentPlan ? null : ( (props: { width: "100%" }} onPress={() => { + if (isSubscribedOnWeb) { + ToastManager.show({ + message: strings.changePlanOnWeb() + }); + return; + } eSendEvent(eCloseSheet); if (!useUserStore.getState().user) { Navigation.navigate("Auth", { @@ -199,18 +211,22 @@ export default function PaywallSheet(props: { /> -