fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -6,8 +6,8 @@ import Accordion from "@scandic-hotels/design-system/Accordion"
|
||||
import AccordionItem from "@scandic-hotels/design-system/Accordion/AccordionItem"
|
||||
import { JsonToHtml } from "@scandic-hotels/design-system/JsonToHtml"
|
||||
|
||||
import SectionContainer from "@/components/Section/Container"
|
||||
import SectionHeader from "@/components/Section/Header"
|
||||
import { Section } from "@/components/Section"
|
||||
import SectionHeader from "@/components/Section/Header/Deprecated"
|
||||
import ShowMoreButton from "@/components/TempDesignSystem/ShowMoreButton"
|
||||
|
||||
import styles from "./accordion.module.css"
|
||||
@@ -25,10 +25,7 @@ export default function AccordionSection({ accordion, title }: AccordionProps) {
|
||||
}
|
||||
|
||||
return (
|
||||
<SectionContainer
|
||||
className={styles.accordionSection}
|
||||
id={HotelHashValues.faq}
|
||||
>
|
||||
<Section className={styles.accordionSection} id={HotelHashValues.faq}>
|
||||
<SectionHeader textTransform="uppercase" title={title} />
|
||||
<Accordion
|
||||
className={`${styles.accordion} ${allAccordionsVisible ? styles.allVisible : ""}`}
|
||||
@@ -51,6 +48,6 @@ export default function AccordionSection({ accordion, title }: AccordionProps) {
|
||||
showLess={allAccordionsVisible}
|
||||
/>
|
||||
) : null}
|
||||
</SectionContainer>
|
||||
</Section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user