Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: update pricing
Marc Seitzdfa179eb7359
diff --git a/components/web/pricing-component.tsx b/components/web/pricing-component.tsxindex 3df666d3..70549839 100644--- a/components/web/pricing-component.tsx+++ b/components/web/pricing-component.tsx@@ -226,7 +226,7 @@ const featureGroups: {free: false,pro: false,business: false,- enterprise: true,+ enterprise: "Enterprise",},},{@@ -246,7 +246,7 @@ const featureGroups: {free: "1 user",pro: "2 users",business: "3 users",- enterprise: "Enterprise",+ enterprise: "5 users",},},@@ -430,7 +430,7 @@ const featureGroups: {free: false,pro: false,business: false,- enterprise: true,+ enterprise: "Enterprise",},},],@@ -464,7 +464,7 @@ const featureGroups: {tiers: {free: false,pro: false,- business: true,+ business: false,enterprise: true,},},diff --git a/lib/stripe/utils.ts b/lib/stripe/utils.tsindex f88a7f52..ab25183e 100644--- a/lib/stripe/utils.ts+++ b/lib/stripe/utils.ts@@ -86,4 +86,24 @@ export const PLANS = [},},},+ {+ name: "Data Rooms",+ slug: "datarooms",+ price: {+ monthly: {+ amount: 199,+ priceIds: {+ test: "price_1PAtTfFJyGSZ96lhbi4XZU2d",+ production: "price_1PAtQOFJyGSZ96lhJNZO2LHx",+ },+ },+ yearly: {+ amount: 149,+ priceIds: {+ test: "price_1PCNRrFJyGSZ96lhQopJJ5cg",+ production: "price_1PCL2GFJyGSZ96lhetYPDN05",+ },+ },+ },+ },];diff --git a/pages/pricing.tsx b/pages/pricing.tsxindex 5256cd9f..b053f305 100644--- a/pages/pricing.tsx+++ b/pages/pricing.tsx@@ -316,14 +316,6 @@ export default function PricingPage() {</div></div>) : null}- {/* {tier.id === "tier-enterprise" ? (- <div className="min-h-12">- <div className="flex flex-col text-sm">- <div className="h-6"></div>- <h4>Get in touch</h4>- </div>- </div>- ) : null} */}{tier.id === "tier-datarooms" ? (<div className="min-h-12"><Switch@@ -386,18 +378,6 @@ export default function PricingPage() {? tier.price[frequencyDatarooms.value]: tier.price[frequency.value]}</span>- {/* <span- className={cn(- "text-sm font-semibold leading-6 text-gray-600",- tier.id === "tier-datarooms" ? "hidden" : "",- )}- >- {tier.id === "tier-pro"- ? frequencyPro.priceSuffix- : tier.id === "tier-business"- ? frequencyBusiness.priceSuffix- : frequency.priceSuffix}- </span> */}</p><p className="mt-6 text-sm leading-6 text-gray-600 text-balance">{tier.description}diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsxindex b2f5106b..f1dc28cc 100644--- a/pages/settings/billing.tsx+++ b/pages/settings/billing.tsx@@ -167,7 +167,7 @@ export default function Billing() {id: "tier-datarooms",href: "/login",currentPlan: plan && plan == "datarooms" ? true : false,- price: { monthly: "€79", annually: "€59" },+ price: { monthly: "€199", annually: "€149" },description:"The one for more control, data room, and multi-file sharing.",featureIntro: "Everything in Pro, plus:",@@ -185,7 +185,7 @@ export default function Billing() {bgColor: "#fb7a00",borderColor: "#fb7a00",textColor: "#black",- buttonText: "Upgrade to Business",+ buttonText: "Upgrade to Data Rooms",mostPopular: true,},];@@ -220,7 +220,7 @@ export default function Billing() {<div className="bg-white dark:bg-gray-900"><div className="mx-auto space-y-8">- <div className="isolate grid grid-cols-1 md:grid-cols-3 border border-black dark:border-muted-foreground rounded-xl overflow-hidden">+ <div className="isolate grid grid-cols-1 md:grid-cols-4 border border-black dark:border-muted-foreground rounded-xl overflow-hidden">{tiers.map((tier) => (<divkey={tier.id}@@ -350,7 +350,7 @@ export default function Billing() {className="h-5 w-10 *:size-4"checked={toggleDataroomsYear}onCheckedChange={() =>- setToggleBusinessYear(!toggleDataroomsYear)+ setToggleDataroomsYear(!toggleDataroomsYear)}/><div className="flex items-center gap-x-1 text-sm mb-1">