fix(SW-438): add ContentCard, ScriptedCard and Shortcuts to ContentPage sidebar

This commit is contained in:
Matilda Landström
2024-10-14 17:11:21 +02:00
parent 66abe066ab
commit 01db5aa192
14 changed files with 290 additions and 13 deletions
+3 -11
View File
@@ -45,10 +45,8 @@ 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}
secondaryButton={card.secondaryButton}
primaryButton={card.primaryButton}
{...card}
/>
)
case CardsGridEnum.cards.TeaserCard:
@@ -57,21 +55,15 @@ export default function CardsGrid({
key={card.system.uid}
title={card.heading}
description={card.body_text}
primaryButton={card.primaryButton}
secondaryButton={card.secondaryButton}
sidePeekButton={card.sidePeekButton}
sidePeekContent={card.sidePeekContent}
image={card.image}
{...card}
/>
)
case CardsGridEnum.cards.LoyaltyCard:
return (
<LoyaltyCard
key={card.system.uid}
image={card.image}
heading={card.heading}
bodyText={card.body_text}
link={card.link}
{...card}
/>
)
}