Merged in feat/SW-3289-replace-sidepeek-hotel-reservation (pull request #2686)
feat(SW-3289): replace sidepeek * fix(SW-3289): replace sidepeek * fix(SW-3289): add wrapping prop and change prop name to buttonVariant * fix(SW-3289): replace body with typography * fix(SW-3289): fix intl message Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import type { SidePeekEnum } from "@scandic-hotels/booking-flow/stores/sidepeek"
|
||||
import type {
|
||||
AdditionalData,
|
||||
Hotel,
|
||||
Restaurant,
|
||||
} from "@scandic-hotels/trpc/types/hotel"
|
||||
|
||||
export type AmenitiesSidePeekProps = {
|
||||
hotel: Hotel & { url: string | null }
|
||||
restaurants: Restaurant[]
|
||||
additionalHotelData: AdditionalData | undefined
|
||||
activeSidePeek: SidePeekEnum
|
||||
close: () => void
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { HotelData } from "@scandic-hotels/trpc/types/hotel"
|
||||
|
||||
export interface HotelHeaderProps {
|
||||
hotelData: HotelData
|
||||
hotelData: HotelData & { url: string | null }
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import type { SafeUser } from "@/types/user"
|
||||
|
||||
export type ToggleSidePeekProps = {
|
||||
hotelId: string
|
||||
roomTypeCode?: string
|
||||
title?: string
|
||||
user?: SafeUser
|
||||
confirmationNumber?: string
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { RoomCategories } from "@scandic-hotels/trpc/types/hotel"
|
||||
import type { Room } from "@scandic-hotels/trpc/types/room"
|
||||
|
||||
import type { SafeUser } from "@/types/user"
|
||||
@@ -13,4 +14,5 @@ export interface DetailsProviderProps extends React.PropsWithChildren {
|
||||
searchParamsStr: string
|
||||
user: SafeUser
|
||||
vat: number
|
||||
roomCategories: RoomCategories
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export enum SidePeekEnum {
|
||||
hotelDetails = "hotel-detail-side-peek",
|
||||
roomDetails = "room-detail-side-peek",
|
||||
bookedRoomDetails = "booked-room-detail-side-peek",
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
import type { BedTypeSelection } from "@scandic-hotels/trpc/types/bedTypeSelection"
|
||||
import type { Child } from "@scandic-hotels/trpc/types/child"
|
||||
import type { RoomCategories } from "@scandic-hotels/trpc/types/hotel"
|
||||
import type { Packages } from "@scandic-hotels/trpc/types/packages"
|
||||
|
||||
import type {
|
||||
@@ -80,6 +81,7 @@ export type InitialState = {
|
||||
booking: DetailsBooking
|
||||
rooms: InitialRoomData[]
|
||||
vat: number
|
||||
roomCategories: RoomCategories
|
||||
}
|
||||
|
||||
export interface DetailsState {
|
||||
@@ -100,6 +102,7 @@ export interface DetailsState {
|
||||
searchParamString: string
|
||||
totalPrice: Price
|
||||
vat: number
|
||||
roomCategories: RoomCategories
|
||||
defaultCurrency: CurrencyEnum
|
||||
preSubmitCallbacks: Record<string, () => void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user