fix(SW-856): fixed issues where blocks do not have titles/preambles
This commit is contained in:
@@ -24,7 +24,7 @@ export default function AccordionSection({ accordion, title }: AccordionProps) {
|
||||
|
||||
return (
|
||||
<SectionContainer id={HotelHashValues.faq}>
|
||||
{title && <SectionHeader textTransform="uppercase" title={title} />}
|
||||
<SectionHeader textTransform="uppercase" title={title} />
|
||||
<Accordion
|
||||
className={`${styles.accordion} ${allAccordionsVisible ? styles.allVisible : ""}`}
|
||||
theme="light"
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function TableBlock({ data }: TableBlockProps) {
|
||||
|
||||
return (
|
||||
<SectionContainer>
|
||||
{heading ? <SectionHeader preamble={preamble} title={heading} /> : null}
|
||||
<SectionHeader preamble={preamble} title={heading} />
|
||||
<div className={styles.tableWrapper}>
|
||||
<ScrollWrapper>
|
||||
<Table
|
||||
|
||||
Reference in New Issue
Block a user