Merged in chore/cleanup-booking-flow (pull request #2824)
chore: Cleanup booking-flow after migration * Remove unused types * Clean up exports, types, unused files etc in booking-flow Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -17,7 +17,7 @@ import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConf
|
||||
import type { EventAttributes } from "ics"
|
||||
import type { MutableRefObject } from "react"
|
||||
|
||||
export interface BookingConfirmationHeaderProps
|
||||
interface BookingConfirmationHeaderProps
|
||||
extends Pick<BookingConfirmation, "booking" | "hotel"> {
|
||||
mainRef: MutableRefObject<HTMLElement | null>
|
||||
}
|
||||
|
||||
@@ -4,7 +4,17 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import styles from "./promo.module.css"
|
||||
|
||||
import type { PromoProps } from "../../../../types/components/promo/promoProps"
|
||||
type PromoProps = {
|
||||
buttonText: string
|
||||
href: string
|
||||
text: string
|
||||
title: string
|
||||
image?: {
|
||||
src: string
|
||||
altText: string
|
||||
altText_En: string
|
||||
}
|
||||
}
|
||||
|
||||
export function Promo({ buttonText, href, text, title }: PromoProps) {
|
||||
return (
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConf
|
||||
|
||||
import type { AdditionalInfoCookieValue } from "../../../types/components/findMyBooking/additionalInfoCookieValue"
|
||||
|
||||
export type PromosProps = Pick<BookingConfirmation, "booking">
|
||||
type PromosProps = Pick<BookingConfirmation, "booking">
|
||||
|
||||
export function Promos({ booking }: PromosProps) {
|
||||
const intl = useIntl()
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import styles from "./retry.module.css"
|
||||
|
||||
export interface RetryProps {
|
||||
interface RetryProps {
|
||||
handleRefetch: () => void
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import { Room } from "../Room"
|
||||
import { LinkedReservationCardSkeleton } from "./LinkedReservationCardSkeleton"
|
||||
import Retry from "./Retry"
|
||||
|
||||
export interface LinkedReservationProps {
|
||||
interface LinkedReservationProps {
|
||||
checkInTime: string
|
||||
checkOutTime: string
|
||||
refId: string
|
||||
|
||||
@@ -22,7 +22,7 @@ import styles from "./room.module.css"
|
||||
|
||||
import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConfirmation"
|
||||
|
||||
export interface RoomProps {
|
||||
interface RoomProps {
|
||||
booking: BookingConfirmation["booking"]
|
||||
checkInTime: string
|
||||
checkOutTime: string
|
||||
|
||||
@@ -12,7 +12,7 @@ import styles from "./rooms.module.css"
|
||||
import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConfirmation"
|
||||
import type { Room as RoomProp } from "@scandic-hotels/trpc/types/hotel"
|
||||
|
||||
export interface BookingConfirmationRoomsProps
|
||||
interface BookingConfirmationRoomsProps
|
||||
extends Pick<BookingConfirmation, "booking"> {
|
||||
mainRoom: RoomProp & {
|
||||
bedType: RoomProp["roomTypes"][number]
|
||||
|
||||
Reference in New Issue
Block a user