Merged in chore/SW-3397-move-confirmation-component-with (pull request #2759)

chore(SW-3397) Moved Confirmation component with Header to booking-flow package

* chore(SW-3397) Moved Confirmation component with Header to booking-flow package

* chore(SW-3397): Optimised code


Approved-by: Anton Gunnarsson
This commit is contained in:
Hrishikesh Vaipurkar
2025-09-04 13:07:11 +00:00
parent 6fa301f8e7
commit 55e25d6c75
30 changed files with 101 additions and 111 deletions

View File

@@ -1,11 +0,0 @@
import type { RouterOutput } from "@scandic-hotels/trpc/client"
import type { EventAttributes } from "ics"
export interface AddToCalendarProps {
checkInDate: NonNullable<
RouterOutput["booking"]["get"]
>["booking"]["checkInDate"]
event: EventAttributes
hotelName: NonNullable<RouterOutput["booking"]["get"]>["hotel"]["name"]
renderButton: (onPress: () => Promise<void>) => React.ReactNode
}

View File

@@ -1,5 +0,0 @@
import type { MutableRefObject } from "react"
export interface DownloadInvoiceProps {
mainRef: MutableRefObject<HTMLElement | null>
}

View File

@@ -1,4 +0,0 @@
import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConfirmation"
export interface ManageBookingProps
extends Pick<BookingConfirmation, "booking"> {}

View File

@@ -1,23 +0,0 @@
import type {
BookingConfirmation,
BookingConfirmationSchema,
} from "@scandic-hotels/trpc/types/bookingConfirmation"
import type { Room } from "@scandic-hotels/trpc/types/hotel"
export interface BookingConfirmationProps {
refId: string
membershipFailedError: boolean
}
export interface BookingConfirmationRoom extends Room {
bedType: Room["roomTypes"][number]
}
export interface ConfirmationProps
extends Pick<BookingConfirmation, "booking" | "hotel"> {
room: BookingConfirmationRoom
}
export interface BookingConfirmationAlertsProps {
booking: BookingConfirmationSchema
}

View File

@@ -1,7 +0,0 @@
import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConfirmation"
import type { MutableRefObject } from "react"
export interface BookingConfirmationHeaderProps
extends Pick<BookingConfirmation, "booking" | "hotel"> {
mainRef: MutableRefObject<HTMLElement | null>
}