fix(SW-1241): Adjusted amenities sidepeek on hotel pages and booking flow
Approved-by: Michael Zetterberg Approved-by: Matilda Landström
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
export type AccessibilityAmenityProps = {
|
||||
elevatorPitch?: string
|
||||
accessibilityPageUrl?: string
|
||||
}
|
||||
@@ -1,22 +1,19 @@
|
||||
import type { Hotel, Restaurant, RestaurantOpeningHours } from "@/types/hotel"
|
||||
import type { AccessibilityAmenityProps } from "./accessibility"
|
||||
import type {
|
||||
CheckInData,
|
||||
DetailedFacility,
|
||||
Hotel,
|
||||
Restaurant,
|
||||
} from "@/types/hotel"
|
||||
import type { ParkingAmenityProps } from "./parking"
|
||||
|
||||
export type AmenitiesSidePeekProps = {
|
||||
amenitiesList: Hotel["detailedFacilities"]
|
||||
amenitiesList: DetailedFacility[]
|
||||
parking: ParkingAmenityProps
|
||||
checkInInformation: Hotel["hotelFacts"]["checkin"]
|
||||
accessibility: AccessibilityAmenityProps
|
||||
checkInInformation: CheckInData
|
||||
accessibility: {
|
||||
elevatorPitch?: string
|
||||
accessibilityPageUrl?: string
|
||||
}
|
||||
restaurants: Restaurant[]
|
||||
hotelType: Hotel["hotelType"]
|
||||
}
|
||||
|
||||
export type FilteredAmenitiesProps = {
|
||||
filteredAmenities: Hotel["detailedFacilities"]
|
||||
}
|
||||
|
||||
export interface BreakfastAmenityProps {
|
||||
openingHours?: RestaurantOpeningHours
|
||||
alternateOpeningHours?: RestaurantOpeningHours
|
||||
hotelType: Hotel["hotelType"]
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
export type CheckInAmenityProps = {
|
||||
checkInInformation: Hotel["hotelFacts"]["checkin"]
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { RestaurantOpeningHours } from "@/types/hotel"
|
||||
|
||||
export interface OpeningHoursProps {
|
||||
openingHours: RestaurantOpeningHours
|
||||
alternateOpeningHours?: RestaurantOpeningHours
|
||||
heading?: string
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
|
||||
import type { AdditionalData, Hotel, Restaurant } from "@/types/hotel"
|
||||
|
||||
export type AmenitiesSidePeekProps = {
|
||||
hotel: Hotel
|
||||
restaurants: Restaurant[]
|
||||
additionalHotelData: AdditionalData | undefined
|
||||
activeSidePeek: SidePeekEnum
|
||||
close: () => void
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
import type { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
|
||||
import type { AdditionalData, Hotel } from "@/types/hotel"
|
||||
import type { AdditionalData, Hotel, Restaurant } from "@/types/hotel"
|
||||
|
||||
export type HotelSidePeekProps = {
|
||||
hotel: Hotel
|
||||
restaurants: Restaurant[]
|
||||
additionalHotelData: AdditionalData | undefined
|
||||
activeSidePeek: SidePeekEnum
|
||||
close: () => void
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { CheckInData, Hotel, Parking } from "@/types/hotel"
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { SidePeekEnum } from "../sidePeek"
|
||||
import type {
|
||||
AlternativeHotelsSearchParams,
|
||||
SelectHotelSearchParams,
|
||||
@@ -15,32 +16,13 @@ export interface ReadMoreProps {
|
||||
hotelId: string
|
||||
hotel: Hotel
|
||||
showCTA: boolean
|
||||
sidePeekKey: SidePeekEnum
|
||||
}
|
||||
|
||||
export interface ContactProps {
|
||||
hotel: Hotel
|
||||
}
|
||||
|
||||
export interface ParkingProps {
|
||||
parking: Parking[]
|
||||
}
|
||||
|
||||
export interface AccessibilityProps {
|
||||
elevatorPitchText: string
|
||||
}
|
||||
|
||||
export interface RestaurantProps {
|
||||
restaurantsContentDescriptionMedium: string
|
||||
}
|
||||
|
||||
export interface CheckInCheckOutProps {
|
||||
checkin: CheckInData
|
||||
}
|
||||
|
||||
export interface MeetingsAndConferencesProps {
|
||||
meetingDescription: string
|
||||
}
|
||||
|
||||
export interface SelectHotelProps {
|
||||
params: {
|
||||
lang: Lang
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export enum SidePeekEnum {
|
||||
hotelDetails = "hotel-detail-side-peek",
|
||||
amenities = "amenities-side-peek",
|
||||
roomDetails = "room-detail-side-peek",
|
||||
bookedRoomDetails = "booked-room-detail-side-peek",
|
||||
}
|
||||
|
||||
30
apps/scandic-web/types/components/sidePeeks/amenities.ts
Normal file
30
apps/scandic-web/types/components/sidePeeks/amenities.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import type {
|
||||
CheckInData,
|
||||
DetailedFacility,
|
||||
Parking,
|
||||
Restaurant,
|
||||
} from "@/types/hotel"
|
||||
|
||||
export interface ParkingAccordionItemProps {
|
||||
parkingPageUrl?: string
|
||||
parking: Parking[]
|
||||
elevatorPitch?: string
|
||||
}
|
||||
|
||||
export interface BreakfastAccordionItemProps {
|
||||
restaurants?: Restaurant[]
|
||||
hotelType: string
|
||||
}
|
||||
|
||||
export interface CheckInCheckOutAccordionItemProps {
|
||||
checkInData: CheckInData
|
||||
}
|
||||
|
||||
export interface AccessibilityAccordionItemProps {
|
||||
elevatorPitch?: string
|
||||
accessibilityPageUrl?: string
|
||||
}
|
||||
|
||||
export interface AdditionalAmenitiesProps {
|
||||
amenities: DetailedFacility[]
|
||||
}
|
||||
Reference in New Issue
Block a user