feat: refactor NewDates, clean up legacy code
This reverts commit 0c7836fa59.
This commit is contained in:
+1
@@ -3,6 +3,7 @@ export interface LinkedReservationProps {
|
||||
checkOutTime: string
|
||||
confirmationNumber: string
|
||||
roomIndex: number
|
||||
roomNumber: number
|
||||
}
|
||||
|
||||
export interface RetryProps {
|
||||
|
||||
@@ -13,7 +13,7 @@ export type SelectedAncillary = Ancillary["ancillaryContent"][number]
|
||||
export type Packages = z.output<typeof packagesSchema>
|
||||
|
||||
export interface AncillariesProps extends Pick<BookingConfirmation, "booking"> {
|
||||
ancillaries: Ancillaries | null
|
||||
ancillariesPromise: Promise<Ancillaries | null>
|
||||
packages: Packages | null
|
||||
user: User | null
|
||||
savedCreditCards: CreditCard[] | null
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import type { Room } from "@/types/hotel"
|
||||
import type { SafeUser } from "@/types/user"
|
||||
import type { SidePeekEnum } from "../hotelReservation/sidePeek"
|
||||
|
||||
export type BookedRoomSidePeekProps = {
|
||||
room: Room
|
||||
activeSidePeek: SidePeekEnum | null
|
||||
close: () => void
|
||||
user: SafeUser
|
||||
confirmationNumber: string
|
||||
room: Room
|
||||
user: SafeUser
|
||||
}
|
||||
|
||||
export type RoomDetailsProps = {
|
||||
|
||||
@@ -7,8 +7,8 @@ export interface BookingConfirmationProviderProps
|
||||
bookingCode: string | null
|
||||
currencyCode: CurrencyEnum
|
||||
fromDate: Date
|
||||
rooms: (Room | null)[]
|
||||
roomCategories: RoomCategories
|
||||
rooms: (Room | null)[]
|
||||
toDate: Date
|
||||
vat: number
|
||||
}
|
||||
|
||||
@@ -76,7 +76,6 @@ export interface MyStayState {
|
||||
savedCreditCards: CreditCard[] | null
|
||||
totalPoints: number
|
||||
totalPrice: string
|
||||
roomCategories: RoomCategories
|
||||
}
|
||||
|
||||
export interface InitialState
|
||||
|
||||
Reference in New Issue
Block a user