From b981e8bffca8f58415e7b1bcd19a5aac1eede3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 17 Apr 2025 14:20:59 +0000 Subject: [PATCH] Merged in feat/SW-2133-accordion (pull request #1799) fix(SW-2133): rte in accordion * fix(SW-2133): rte in accordion Approved-by: Michael Zetterberg --- .../components/Blocks/Accordion/index.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/scandic-web/components/Blocks/Accordion/index.tsx b/apps/scandic-web/components/Blocks/Accordion/index.tsx index 8a26314cb..7c38c45b9 100644 --- a/apps/scandic-web/components/Blocks/Accordion/index.tsx +++ b/apps/scandic-web/components/Blocks/Accordion/index.tsx @@ -13,7 +13,6 @@ import styles from "./accordion.module.css" import type { AccordionProps } from "@/types/components/blocks/Accordion" import { HotelHashValues } from "@/types/components/hotelPage/tabNavigation" -import type { RTENode } from "@/types/transitionTypes/rte/node" export default function AccordionSection({ accordion, title }: AccordionProps) { const showToggleButton = accordion.length > 5 @@ -34,15 +33,10 @@ export default function AccordionSection({ accordion, title }: AccordionProps) { > {accordion.map((acc) => ( - {acc.answer.json.children.map( - (child: { children: RTENode[] }, idx: number) => ( - - ) - )} + ))}