Feat/SW-2272 campaign cards block
Approved-by: Matilda Landström
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import CarouselCards from "@/components/Blocks/CarouselCards"
|
||||
import Essentials from "@/components/Blocks/Essentials"
|
||||
|
||||
import type { BlocksProps } from "@/types/components/blocks"
|
||||
@@ -10,6 +11,13 @@ export default function Blocks({ blocks }: BlocksProps) {
|
||||
return (
|
||||
<Essentials key={block.essentials.title} content={block.essentials} />
|
||||
)
|
||||
case BlocksEnums.block.CarouselCards:
|
||||
return (
|
||||
<CarouselCards
|
||||
carousel_cards={block.carousel_cards}
|
||||
key={block.carousel_cards.heading}
|
||||
/>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user