Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.57.5 #742

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading