Merged in feat(SW-2084)-disable-options-modify-my-stay (pull request #1662)
feat(SW-2084) logic to disable Manage stay options * feat(SW-2084) logic to disable Manage stay options * feat(SW-2084) cleanup logic for checks * feat(SW-2084) check if date has passed * feat(SW-2084) change to datetimeIsInThePast Approved-by: Niclas Edenvin
This commit is contained in:
@@ -21,7 +21,6 @@ export type Room = Pick<
|
||||
| "confirmationNumber"
|
||||
| "cancellationNumber"
|
||||
| "bookingCode"
|
||||
| "isModifiable"
|
||||
| "isCancelable"
|
||||
| "multiRoom"
|
||||
| "canChangeDate"
|
||||
@@ -41,6 +40,7 @@ export type Room = Pick<
|
||||
roomPrice: RoomPrice
|
||||
breakfast: BreakfastPackage | false
|
||||
mainRoom: boolean
|
||||
isPrePaid: boolean
|
||||
}
|
||||
|
||||
interface MyStayRoomDetailsState {
|
||||
@@ -85,7 +85,6 @@ export const useMyStayRoomDetailsStore = create<MyStayRoomDetailsState>(
|
||||
rateCode: "",
|
||||
title: null,
|
||||
},
|
||||
reservationStatus: "",
|
||||
roomPrice: {
|
||||
perNight: {
|
||||
requested: {
|
||||
@@ -129,7 +128,7 @@ export const useMyStayRoomDetailsStore = create<MyStayRoomDetailsState>(
|
||||
breakfast: false,
|
||||
linkedReservations: [],
|
||||
isCancelable: false,
|
||||
isModifiable: false,
|
||||
isPrePaid: false,
|
||||
},
|
||||
linkedReservationRooms: [],
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user