From 162f170f832bd6fb1702fa4646beef28001bc981 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sat, 3 Aug 2024 09:41:16 -0700 Subject: [PATCH] fix(pricing): correct Business tier pricing --- src/components/sections/Pricing.tsx | 35 ++++++++--------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/src/components/sections/Pricing.tsx b/src/components/sections/Pricing.tsx index 4341c41..94f773e 100644 --- a/src/components/sections/Pricing.tsx +++ b/src/components/sections/Pricing.tsx @@ -16,13 +16,8 @@ const tiers: { ) => JSX.Element; cta: string; price: string | { monthly: string; annually?: string }; + priceDescription: string; description: string; - cloudAccounts: - | { maximum: number } - | { - included: number; - additionalCost: number; - }; scanFrequency: string; features: string[]; support: string[]; @@ -34,8 +29,8 @@ const tiers: { icon: (props) => , cta: 'Get started', price: '$0', + priceDescription: 'for 1 cloud account', description: 'Start your cloud compliance journey.', - cloudAccounts: { maximum: 1 }, scanFrequency: 'Monthly', features: ['Cloud inventory', 'Compliance benchmarks'], support: ['Community support'], @@ -46,8 +41,8 @@ const tiers: { icon: (props) => , cta: 'Start free trial', price: { monthly: '$40' }, + priceDescription: 'per cloud account', description: 'Automate cloud infrastructure security.', - cloudAccounts: { included: 1, additionalCost: 40 }, scanFrequency: 'Hourly', features: [ 'Audit history', @@ -122,36 +117,24 @@ export default function Pricing() {

{typeof tier.price === 'string' ? ( <> - + {tier.price} ) : ( <> - + {tier.price.monthly} - + / month )}

- {'maximum' in tier.cloudAccounts ? ( -

- {tier.cloudAccounts.maximum} cloud account -

- ) : ( - <> -

- {tier.cloudAccounts.included} cloud accounts included -

-

- (${tier.cloudAccounts.additionalCost} / month per - additional account) -

- - )} +

+ {tier.priceDescription} +

{tier.scanFrequency} scans