Feat/SW-2273 campaign page accordion block
Approved-by: Matilda Landström
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import AccordionSection from "@/components/Blocks/Accordion"
|
||||
import CarouselCards from "@/components/Blocks/CarouselCards"
|
||||
import Essentials from "@/components/Blocks/Essentials"
|
||||
|
||||
@@ -18,6 +19,14 @@ export default function Blocks({ blocks }: BlocksProps) {
|
||||
key={block.carousel_cards.heading}
|
||||
/>
|
||||
)
|
||||
case BlocksEnums.block.Accordion:
|
||||
return (
|
||||
<AccordionSection
|
||||
accordion={block.accordion.accordions}
|
||||
title={block.accordion.title}
|
||||
key={block.accordion.title}
|
||||
/>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user