Merged in chore/update-eslint-configs (pull request #2812)
chore: Extend eslint configs from @typescript-eslint/recommended * Change to typescript recommended in scandic-web * Remove comment * Change to recommended ts config in partner-sas * Change to recommended ts lint config in booking-flow Approved-by: Linus Flood
This commit is contained in:
@@ -90,7 +90,7 @@ export default function BookingWidgetClient({
|
||||
toDate = now.add(1, "day")
|
||||
}
|
||||
|
||||
let selectedLocation =
|
||||
const selectedLocation =
|
||||
destinationsData?.currentSelection.hotel ??
|
||||
destinationsData?.currentSelection.city
|
||||
|
||||
@@ -199,8 +199,9 @@ export default function BookingWidgetClient({
|
||||
? JSON.parse(storedBookingCode)
|
||||
: undefined
|
||||
|
||||
initialBookingCode?.remember &&
|
||||
if (initialBookingCode?.remember) {
|
||||
methods.setValue("bookingCode", initialBookingCode)
|
||||
}
|
||||
}
|
||||
}, [methods, selectedBookingCode])
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ export default function ChildInfoSelector({
|
||||
]
|
||||
|
||||
function getAvailableBeds(age: number) {
|
||||
let availableBedTypes: ChildBed[] = []
|
||||
const availableBedTypes: ChildBed[] = []
|
||||
if (age <= 5 && (adults > childrenInAdultsBed || child.bed === 0)) {
|
||||
availableBedTypes.push(allBedTypes[0])
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ export default function GuestsRoomsPickerForm({
|
||||
const updateHeight = useCallback(() => {
|
||||
// Get available space for picker to show without going beyond screen
|
||||
const bookingWidget = document.getElementById("booking-widget")
|
||||
let maxHeight =
|
||||
const maxHeight =
|
||||
window.innerHeight -
|
||||
(bookingWidget?.getBoundingClientRect().bottom ?? 0) -
|
||||
50
|
||||
|
||||
Reference in New Issue
Block a user