fix(SW-438): remove spreading

This commit is contained in:
Matilda Landström
2024-10-21 14:34:49 +02:00
parent 3f3391a1f4
commit 046f5d6196

View File

@@ -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 (
<LoyaltyCard
key={card.system.uid}
image={card.image}
heading={card.heading}
bodyText={card.body_text}
{...card}
link={card.link}
/>
)
}