Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: add annual billing indicator

Marc Seitz5d3d9b192394
diff --git a/components/billing/upgrade-plan-modal-with-discount.tsx b/components/billing/upgrade-plan-modal-with-discount.tsx
index c6a8be42..29bd6f76 100644
--- a/components/billing/upgrade-plan-modal-with-discount.tsx
+++ b/components/billing/upgrade-plan-modal-with-discount.tsx
@@ -395,7 +395,7 @@ export function UpgradePlanModalWithDiscount({
</span>
</div>
<span className="text-gray-500 dark:text-white/75">
- /month
+ /month, billed annually
</span>
</>
) : (
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsx
index 7af8c468..a71ff737 100644
--- a/components/billing/upgrade-plan-modal.tsx
+++ b/components/billing/upgrade-plan-modal.tsx
@@ -298,7 +298,7 @@ export function UpgradePlanModal({
}
</span>
<span className="text-gray-500 dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
diff --git a/pages/settings/upgrade-holiday-offer.tsx b/pages/settings/upgrade-holiday-offer.tsx
index 039a0898..e2def61f 100644
--- a/pages/settings/upgrade-holiday-offer.tsx
+++ b/pages/settings/upgrade-holiday-offer.tsx
@@ -265,7 +265,7 @@ export default function UpgradeHolidayOfferPage() {
<div className="mb-2 text-balance text-4xl font-medium tabular-nums text-foreground">
€{period === "yearly" ? discountedYearlyPrice : monthlyPrice}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
{period === "yearly" && (
@@ -456,7 +456,7 @@ export default function UpgradeHolidayOfferPage() {
<div className="mb-2 text-balance text-4xl font-medium tabular-nums text-foreground">
€{period === "yearly" ? discountedYearlyPrice : monthlyPrice}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
{period === "yearly" && (
@@ -646,7 +646,7 @@ export default function UpgradeHolidayOfferPage() {
<div className="mb-2 text-balance text-4xl font-medium tabular-nums text-foreground">
€{period === "yearly" ? discountedYearlyPrice : monthlyPrice}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
{period === "yearly" && (
diff --git a/pages/settings/upgrade.tsx b/pages/settings/upgrade.tsx
index e75020c4..58688a74 100644
--- a/pages/settings/upgrade.tsx
+++ b/pages/settings/upgrade.tsx
@@ -232,7 +232,7 @@ export default function UpgradePage() {
€
{PLANS.find((p) => p.name === planOption)!.price[period].amount}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
<p className="mt-4 text-sm text-gray-600 dark:text-white">
@@ -389,7 +389,7 @@ export default function UpgradePage() {
{PLANS.find((p) => p.name === planOption)!.price[period]
.amount}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
<p className="mt-4 text-sm text-gray-600 dark:text-white">
@@ -546,7 +546,7 @@ export default function UpgradePage() {
{PLANS.find((p) => p.name === planOption)!.price[period]
.amount}
<span className="text-base font-normal dark:text-white/75">
- /month
+ /month{period === "yearly" && ", billed annually"}
</span>
</div>
<p className="mt-4 text-sm text-gray-600 dark:text-white">