Merged in feat/SW-1308-booking-codes-track-b (pull request #1607)
Feat/SW-1308 booking codes track b * feat: SW-1308 Booking codes track b * feat: SW-1308 Booking codes Track B implementation * feat: SW-1308 Optimized after rebase Approved-by: Arvid Norlin
This commit is contained in:
@@ -17,6 +17,7 @@ import { guestDetailsSchema } from "@/components/HotelReservation/EnterDetails/D
|
||||
import { DetailsContext } from "@/contexts/Details"
|
||||
|
||||
import type { DetailsStore } from "@/types/contexts/enter-details"
|
||||
import { CurrencyEnum } from "@/types/enums/currency"
|
||||
import { StepEnum } from "@/types/enums/step"
|
||||
import type { DetailsProviderProps } from "@/types/providers/enter-details"
|
||||
import type { InitialState, RoomState } from "@/types/stores/enter-details"
|
||||
|
||||
@@ -22,6 +22,12 @@ export default function RoomProvider({
|
||||
const selectRateRedemption = useRatesStore((state) =>
|
||||
state.actions.selectRateRedemption(idx)
|
||||
)
|
||||
const selectRateCheque = useRatesStore((state) =>
|
||||
state.actions.selectRateCheque(idx)
|
||||
)
|
||||
const selectRateVoucher = useRatesStore((state) =>
|
||||
state.actions.selectRateVoucher(idx)
|
||||
)
|
||||
const roomNr = idx + 1
|
||||
return (
|
||||
<RoomContext.Provider
|
||||
@@ -33,6 +39,8 @@ export default function RoomProvider({
|
||||
selectFilter,
|
||||
selectRate,
|
||||
selectRateRedemption,
|
||||
selectRateCheque,
|
||||
selectRateVoucher,
|
||||
},
|
||||
isActiveRoom: activeRoom === idx,
|
||||
isMainRoom: roomNr === 1,
|
||||
|
||||
Reference in New Issue
Block a user