feat(SW-213): Created Text Cols component and added to Blocks in Contentstack

This commit is contained in:
Pontus Dreij
2024-09-18 15:12:11 +02:00
parent 730f66d79a
commit f27dee0c56
8 changed files with 129 additions and 5 deletions
+3
View File
@@ -3,6 +3,7 @@ import JsonToHtml from "@/components/JsonToHtml"
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
import CardsGrid from "./CardsGrid"
import TextCols from "./TextCols"
import type { BlocksProps } from "@/types/components/content/blocks"
import { ContentBlocksTypenameEnum } from "@/types/components/content/enums"
@@ -38,6 +39,8 @@ export function Blocks({ blocks }: BlocksProps) {
firstItem={firstItem}
/>
)
case ContentBlocksTypenameEnum.ContentPageBlocksTextCols:
return <TextCols text_cols={block.text_cols} />
default:
return null
}