From c065101b7c1af1985a5827051d0d393888397c8a Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Wed, 26 Mar 2025 09:38:03 +0000 Subject: [PATCH] Merged in fix/ratecard-adjustments (pull request #1638) add transparent border to rateCard and make appoximateRate optional * add transparent border to rateCard and make appoximateRate optional Approved-by: Simon.Emanuelsson --- .../components/RateCard/Campaign/index.tsx | 28 ++++++++++--------- .../lib/components/RateCard/Code/index.tsx | 2 +- .../lib/components/RateCard/Points/index.tsx | 6 ++-- .../lib/components/RateCard/Regular/index.tsx | 28 ++++++++++--------- .../components/RateCard/rate-card.module.css | 1 + 5 files changed, 35 insertions(+), 30 deletions(-) diff --git a/packages/design-system/lib/components/RateCard/Campaign/index.tsx b/packages/design-system/lib/components/RateCard/Campaign/index.tsx index 197fc88e2..f5cb483c7 100644 --- a/packages/design-system/lib/components/RateCard/Campaign/index.tsx +++ b/packages/design-system/lib/components/RateCard/Campaign/index.tsx @@ -18,7 +18,7 @@ interface CampaignRateCardProps { referenceRate: Rate comparisonRate?: Omit isHighlightedRate?: boolean - approximateRate: Rate + approximateRate?: Rate handleChange: () => void handleTermsClick?: () => void } @@ -85,7 +85,7 @@ export default function CampaignRateCard({

- {rate.price}{' '} + {`${rate.price} `} {rate.unit} @@ -99,7 +99,7 @@ export default function CampaignRateCard({

- {memberRate.price}{' '} + {`${memberRate.price} `} {memberRate.unit} @@ -121,16 +121,18 @@ export default function CampaignRateCard({ ) : null} -

- -

{approximateRate.label}

-
- -

- {approximateRate.price} {approximateRate.unit} -

-
-
+ {approximateRate ? ( +
+ +

{approximateRate.label}

+
+ +

+ {approximateRate.price} {approximateRate.unit} +

+
+
+ ) : null} {referenceRate ? (