fix(SW-194)

This commit is contained in:
Matilda Landström
2024-10-16 13:33:13 +02:00
parent fa142cbbdb
commit da898496fe
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ export default function AccordionSection({ accordion, title }: AccordionProps) {
<SectionContainer id={HotelHashValues.faq}>
{title && <SectionHeader textTransform="uppercase" title={title} />}
<Accordion
className={`${styles.accordion}${allAccordionsVisible ? styles.allVisible : ""}`}
className={`${styles.accordion} ${allAccordionsVisible ? styles.allVisible : ""}`}
theme="light"
variant="card"
>

View File

@@ -17,7 +17,7 @@ import { HotelHashValues } from "@/types/components/hotelPage/tabNavigation"
export function Rooms({ rooms }: RoomsProps) {
const intl = useIntl()
const showToggleButton = rooms.length > 4
const showToggleButton = rooms.length > 3
const [allRoomsVisible, setAllRoomsVisible] = useState(!showToggleButton)
const scrollRef = useRef<HTMLDivElement>(null)
@@ -62,7 +62,7 @@ export function Rooms({ rooms }: RoomsProps) {
preamble={null}
/>
<Grids.Stackable
className={`${styles.grid}${allRoomsVisible ? styles.allVisible : ""}`}
className={`${styles.grid} ${allRoomsVisible ? styles.allVisible : ""}`}
>
{mappedRooms.map(({ id, images, title, subtitle, popularChoice }) => (
<div key={id}>