From 2447a18f2aa81a0d3fe9d290cb95df3800e5cdc3 Mon Sep 17 00:00:00 2001 From: Nick Grato Date: Thu, 21 Dec 2023 10:37:19 -0800 Subject: [PATCH] fixing callouts --- .../plans/plan-cards/BasePlanCard.module.scss | 3 ++ .../modules/plans/plan-cards/BasePlanCard.tsx | 2 +- .../plans/plan-cards/BusinessPlanCard.tsx | 7 +-- .../plans/plan-cards/PersonalPlanCard.tsx | 3 +- .../plans/plan-cards/ProfessionalPlanCard.tsx | 3 +- client/components/modules/plans/plan.const.ts | 50 ++++++++++++++----- client/styles/core/variables.scss | 2 + 7 files changed, 52 insertions(+), 18 deletions(-) diff --git a/client/components/modules/plans/plan-cards/BasePlanCard.module.scss b/client/components/modules/plans/plan-cards/BasePlanCard.module.scss index d3baf897..dfea2d89 100644 --- a/client/components/modules/plans/plan-cards/BasePlanCard.module.scss +++ b/client/components/modules/plans/plan-cards/BasePlanCard.module.scss @@ -38,6 +38,9 @@ &_rainbow { background: $gradient-rainbow; } + &_tree { + background: $gradient-tree; + } } .title { diff --git a/client/components/modules/plans/plan-cards/BasePlanCard.tsx b/client/components/modules/plans/plan-cards/BasePlanCard.tsx index 30add00e..8f1c135c 100644 --- a/client/components/modules/plans/plan-cards/BasePlanCard.tsx +++ b/client/components/modules/plans/plan-cards/BasePlanCard.tsx @@ -63,7 +63,7 @@ type BasePlanCardPropsT = { showDisclaimer?: boolean; confirmButton: ReactNode; footerClassProp?: string; - color: 'silver' | 'warm' | 'rainbow'; + color: 'silver' | 'warm' | 'rainbow' | 'tree'; isSoldOut?: boolean; }; diff --git a/client/components/modules/plans/plan-cards/BusinessPlanCard.tsx b/client/components/modules/plans/plan-cards/BusinessPlanCard.tsx index bd355cee..5cf433e8 100644 --- a/client/components/modules/plans/plan-cards/BusinessPlanCard.tsx +++ b/client/components/modules/plans/plan-cards/BusinessPlanCard.tsx @@ -14,7 +14,7 @@ type BusinessPlanCardPropsT = { const BusinessPlanCard = ({ billingPeriod }: BusinessPlanCardPropsT) => { const { regionCode } = useSelector(selectRegion); - const { planPrice, planUrl, taxDescription, currencySymbol } = + const { planPrice, planUrl, taxDescription, currencySymbol, currencyAbbrev } = getPricePageData(regionCode, PlansE.BUSINESS, billingPeriod); /** @@ -27,11 +27,12 @@ const BusinessPlanCard = ({ billingPeriod }: BusinessPlanCardPropsT) => { return ( { const { regionCode } = useSelector(selectRegion); - const { planPrice, planUrl, taxDescription, currencySymbol } = + const { planPrice, planUrl, taxDescription, currencySymbol, currencyAbbrev } = getPricePageData(regionCode, PlansE.PERSONAL, billingPeriod); /** @@ -34,6 +34,7 @@ const PersonalPlanCard = ({ billingPeriod }: PersonalPlanCardPropsT) => { billingPeriod={`per ${ billingPeriod === BillingPeriodE.YEARLY ? 'year' : 'month' }`} + currencyAbbrev={currencyAbbrev} /> } infoCopyList={PERSONAL_COPY} diff --git a/client/components/modules/plans/plan-cards/ProfessionalPlanCard.tsx b/client/components/modules/plans/plan-cards/ProfessionalPlanCard.tsx index 47c6dc85..50b27111 100644 --- a/client/components/modules/plans/plan-cards/ProfessionalPlanCard.tsx +++ b/client/components/modules/plans/plan-cards/ProfessionalPlanCard.tsx @@ -16,7 +16,7 @@ const ProfessionalPlanCard = ({ billingPeriod, }: ProfessionalPlanCardPropsT) => { const { regionCode } = useSelector(selectRegion); - const { planPrice, planUrl, taxDescription, currencySymbol } = + const { planPrice, planUrl, taxDescription, currencySymbol, currencyAbbrev } = getPricePageData(regionCode, PlansE.PROFESSIONAL, billingPeriod); /** @@ -34,6 +34,7 @@ const ProfessionalPlanCard = ({ price={