Merged in fix/booking-flow-eslint-fix (pull request #3342)

fix: Upgrade booking-flow eslint config

* Upgrade booking-flow eslint config


Approved-by: Bianca Widstam
This commit is contained in:
Anton Gunnarsson
2025-12-12 11:40:45 +00:00
parent 92391fdbd7
commit 3e3b15940f
23 changed files with 61 additions and 64 deletions

View File

@@ -66,6 +66,7 @@ export default function EnterDetailsProvider({
const [hasInitializedStore, setHasInitializedStore] = useState(false)
const storeRef = useRef<EnterDetailsStore>(undefined)
const pointsCurrency = useGetPointsCurrency()
// eslint-disable-next-line react-hooks/refs
if (!storeRef.current) {
const initialData: InitialState = {
booking,
@@ -242,6 +243,7 @@ export default function EnterDetailsProvider({
}, [booking, rooms, user])
return (
// eslint-disable-next-line react-hooks/refs
<EnterDetailsContext.Provider value={storeRef.current}>
{hasInitializedStore ? children : <LoadingSpinner fullPage />}
</EnterDetailsContext.Provider>

View File

@@ -427,6 +427,7 @@ export function SelectRateProvider({
return
}
// eslint-disable-next-line react-hooks/immutability
updatedRoom.packages = packages
updateBooking(selectRateBooking)
setActiveRoomIndex(roomIndex)
@@ -448,6 +449,7 @@ export function SelectRateProvider({
return
}
// eslint-disable-next-line react-hooks/immutability
updatedRoom.rateCode = rateCode
updatedRoom.roomTypeCode = roomTypeCode
updatedRoom.counterRateCode = counterRateCode || null