From 23613a4d9da345f9393a43d2c4fd3f07d903cda7 Mon Sep 17 00:00:00 2001 From: Rob Gordon Date: Sun, 15 Sep 2024 22:29:31 -0400 Subject: [PATCH 1/2] Update Button Text Wrapping (#741) --- app/src/components/PaywallModal.tsx | 2 +- app/src/lib/usePaywallModalStore.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/components/PaywallModal.tsx b/app/src/components/PaywallModal.tsx index 486d5e5d..e1bbf16f 100644 --- a/app/src/components/PaywallModal.tsx +++ b/app/src/components/PaywallModal.tsx @@ -63,7 +63,7 @@ export default function PaywallModal() { { posthog.capture("clicked-paywall-button"); diff --git a/app/src/lib/usePaywallModalStore.ts b/app/src/lib/usePaywallModalStore.ts index 5aebea3d..c101a9c2 100644 --- a/app/src/lib/usePaywallModalStore.ts +++ b/app/src/lib/usePaywallModalStore.ts @@ -1,3 +1,4 @@ +import { t } from "@lingui/macro"; import { create } from "zustand"; type PaywallModalStore = { @@ -34,8 +35,12 @@ export function showPaywall({ movieUrl, imgUrl = paywallImageUrl, toPricingCode, - buttonText = "Learn More", // New parameter with default value + buttonText, }: Omit) { + if (!buttonText) { + buttonText = t`Learn More`; + } + // If there is no movie URL, we will preload the image if (!movieUrl) { // Pre-load the paywall image From c5877fd49188de5de4d86c2b7e8cf5e72cf2415a Mon Sep 17 00:00:00 2001 From: Rob Gordon Date: Sun, 15 Sep 2024 22:30:57 -0400 Subject: [PATCH 2/2] chore: fix version --- app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/package.json b/app/package.json index 0ee7979b..85d69432 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "1.57.4", + "version": "1.57.5", "main": "module/module.js", "license": "MIT", "scripts": {