From 203fe5bee024b70e56f6ea15dddf0b07506830c0 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Tue, 30 Sep 2025 08:56:37 +0500 Subject: [PATCH] mobile: update sheet paywall --- .../app/components/sheets/paywall/index.tsx | 40 +++++++++++++------ apps/mobile/package-lock.json | 4 +- packages/intl/locale/en.po | 4 ++ packages/intl/locale/pseudo-LOCALE.po | 4 ++ packages/intl/src/strings.ts | 4 +- 5 files changed, 41 insertions(+), 15 deletions(-) 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: { /> -