feat(SW-285): add support for shortcuts in content pages
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import JsonToHtml from "@/components/JsonToHtml"
|
||||
|
||||
// import DynamicContentBlock from "@/components/Loyalty/Blocks/DynamicContent"
|
||||
// import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
|
||||
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
|
||||
|
||||
// import CardsGrid from "./CardsGrid"
|
||||
import type { BlocksProps } from "@/types/components/content/blocks"
|
||||
import { ContentBlocksTypenameEnum } from "@/types/components/content/enums"
|
||||
@@ -19,6 +19,16 @@ export function Blocks({ blocks }: BlocksProps) {
|
||||
/>
|
||||
</section>
|
||||
)
|
||||
case ContentBlocksTypenameEnum.ContentPageBlocksShortcuts:
|
||||
return (
|
||||
<Shortcuts
|
||||
firstItem={firstItem}
|
||||
key={`${block.shortcuts.title}-${idx}`}
|
||||
shortcuts={block.shortcuts.shortcuts}
|
||||
subtitle={block.shortcuts.preamble}
|
||||
title={block.shortcuts.title}
|
||||
/>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user