Skip to content

Commit

Permalink
Merge pull request #742 from tone-row/dev
Browse files Browse the repository at this point in the history
v1.57.5
  • Loading branch information
rob-gordon authored Sep 16, 2024
2 parents 1b52f2c + c5877fd commit 49c871a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "1.57.4",
"version": "1.57.5",
"main": "module/module.js",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/PaywallModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function PaywallModal() {
<Dialog.Close asChild>
<Button2
color="blue"
className="mt-4"
className="mt-4 !whitespace-normal !leading-tight"
data-to-pricing={toPricingCode}
onClick={() => {
posthog.capture("clicked-paywall-button");
Expand Down
7 changes: 6 additions & 1 deletion app/src/lib/usePaywallModalStore.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { t } from "@lingui/macro";
import { create } from "zustand";

type PaywallModalStore = {
Expand Down Expand Up @@ -34,8 +35,12 @@ export function showPaywall({
movieUrl,
imgUrl = paywallImageUrl,
toPricingCode,
buttonText = "Learn More", // New parameter with default value
buttonText,
}: Omit<PaywallModalStore, "open">) {
if (!buttonText) {
buttonText = t`Learn More`;
}

// If there is no movie URL, we will preload the image
if (!movieUrl) {
// Pre-load the paywall image
Expand Down

0 comments on commit 49c871a

Please sign in to comment.