Skip to content

Commit

Permalink
nicer formatting for pro tier pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar committed Nov 13, 2023
1 parent daa7ebc commit 773938d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
7 changes: 6 additions & 1 deletion pages/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ export function PlanCard({
color="text-xlight"
textStyles={{ '': 'mLabel' }}
>
{price}
{price.split(', ').map((line, i, arr) => (
<>
{line}
{i !== arr.length - 1 && <br />}
</>
))}
</ResponsiveText>
</div>
{features && (
Expand Down
22 changes: 11 additions & 11 deletions src/data/getPricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,20 +359,20 @@ async function getPricingInner(
})
const proPlan: Plan = {
...proPlanBase,
...(clusterMonthlyPricing && userMonthlyPricing
? {
price: `$${
Math.round(clusterMonthlyPricing * 100) / 100
} / cluster, + $${
Math.round(userMonthlyPricing * 100) / 100
} / user / month`,
}
: {}),
// TODO: Add this back once APIs are in place
// ...(clusterMonthlyPricing && userMonthlyPricing
// ? {
// price: `$${
// Math.round(clusterMonthlyPricing * 100) / 100
// } / cluster, + $${
// Math.round(userMonthlyPricing * 100) / 100
// } / user / month`,
// }
// : {}),
}

return {
// TODO: reinstate this to proPlan once APIs are in place
plans: [freePlanBase, proPlanBase, enterprisePlanBase],
plans: [freePlanBase, proPlan, enterprisePlanBase],
plansFeatures: features,
}
}
Expand Down

0 comments on commit 773938d

Please sign in to comment.