feat: add blocks for loyalty page
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user