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:
Erik Tiekstra
2025-04-23 08:41:04 +00:00
parent c23a32cd10
commit 8152aea649
46 changed files with 654 additions and 731 deletions

View File

@@ -1,4 +0,0 @@
export type AccessibilityAmenityProps = {
elevatorPitch?: string
accessibilityPageUrl?: string
}

View File

@@ -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"]
}

View File

@@ -1,5 +0,0 @@
import type { Hotel } from "@/types/hotel"
export type CheckInAmenityProps = {
checkInInformation: Hotel["hotelFacts"]["checkin"]
}

View File

@@ -1,7 +0,0 @@
import type { RestaurantOpeningHours } from "@/types/hotel"
export interface OpeningHoursProps {
openingHours: RestaurantOpeningHours
alternateOpeningHours?: RestaurantOpeningHours
heading?: string
}

View File

@@ -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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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",
}

View 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[]
}