From 046f5d6196e02b0e893f051d8f8b9ee1cfa762b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Mon, 21 Oct 2024 14:34:49 +0200 Subject: [PATCH] fix(SW-438): remove spreading --- components/Blocks/CardsGrid.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/components/Blocks/CardsGrid.tsx b/components/Blocks/CardsGrid.tsx index 6c9d84b15..1c07b73ec 100644 --- a/components/Blocks/CardsGrid.tsx +++ b/components/Blocks/CardsGrid.tsx @@ -45,8 +45,10 @@ export default function CardsGrid({ theme={cards_grid.theme ?? "one"} key={card.system.uid} scriptedTopTitle={card.scripted_top_title} + heading={card.heading} bodyText={card.body_text} - {...card} + secondaryButton={card.secondaryButton} + primaryButton={card.primaryButton} /> ) case CardsGridEnum.cards.TeaserCard: @@ -55,15 +57,21 @@ export default function CardsGrid({ key={card.system.uid} title={card.heading} description={card.body_text} - {...card} + primaryButton={card.primaryButton} + secondaryButton={card.secondaryButton} + sidePeekButton={card.sidePeekButton} + sidePeekContent={card.sidePeekContent} + image={card.image} /> ) case CardsGridEnum.cards.LoyaltyCard: return ( ) }