fix: SW-1010 Fixed naming conventions

This commit is contained in:
Hrishikesh Vaipurkar
2024-11-28 09:17:27 +01:00
parent 544cb1687d
commit 5650538731

View File

@@ -63,19 +63,19 @@ export default function GuestsRoomsPickerForm() {
(document.querySelector("#booking-widget")?.getBoundingClientRect()
.bottom ?? 0) -
50
const innerContainerHt = document
.querySelector(".react-aria-Popover")
const innerContainerHeight = document
.querySelector(".guests_picker_popover")
?.getBoundingClientRect().height
if (
maxHeight != containerHeight &&
innerContainerHt &&
maxHeight <= innerContainerHt
innerContainerHeight &&
maxHeight <= innerContainerHeight
) {
setContainerHeight(maxHeight)
} else if (
containerHeight &&
innerContainerHt &&
maxHeight > innerContainerHt
innerContainerHeight &&
maxHeight > innerContainerHeight
) {
setContainerHeight(0)
}
@@ -98,6 +98,7 @@ export default function GuestsRoomsPickerForm() {
}}
/>
<Popover
className="guests_picker_popover"
placement="bottom start"
offset={36}
style={containerHeight ? { overflow: "auto" } : {}}