feat: add blocks for loyalty page

This commit is contained in:
Christel Westerberg
2024-04-23 16:54:34 +02:00
parent fc0e5aed02
commit 2ddabf1e50
22 changed files with 418 additions and 109 deletions

View File

@@ -1,4 +1,5 @@
import JsonToHtml from "@/components/JsonToHtml"
import DynamicContentBlock from "@/components/Loyalty/Blocks/DynamicContent"
import {
Blocks as BlocksType,
@@ -18,7 +19,7 @@ export function Blocks({ blocks }: { blocks: BlocksType[] }) {
/>
)
case LoyaltyBlocksTypenameEnum.LoyaltyPageBlocksDynamicContent:
return <p>Dynamic</p>
return <DynamicContentBlock dynamicContent={block.dynamic_content} />
default:
return null
}