fix(SW-194)
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user