Merged in feat/SW-1090-amenities-meetings-sidepeeks (pull request #1114)

Feat/SW-1090: Sidepeek amenities and meetings

Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
This commit is contained in:
Matilda Landström
2025-01-10 15:18:21 +00:00
parent 03bd8ac94b
commit 57bc08aae2
26 changed files with 350 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
import type { z } from "zod"
import type { getMeetingRoomsSchema } from "@/server/routers/hotels/output"
export type MeetingRoomData = z.infer<typeof getMeetingRoomsSchema>
export type MeetingRooms = MeetingRoomData["data"]

View File

@@ -1,12 +1,22 @@
import type { Hotel } from "@/types/hotel"
import type {
Hotel,
RestaurantData,
RestaurantOpeningHours,
} from "@/types/hotel"
export type AmenitiesSidePeekProps = {
amenitiesList: Hotel["detailedFacilities"]
parking: Hotel["parking"]
checkInInformation: Hotel["hotelFacts"]["checkin"]
accessibility: Hotel["hotelFacts"]["hotelInformation"]["accessibility"]
restaurants: RestaurantData[]
}
export type FilteredAmenitiesProps = {
filteredAmenities: Hotel["detailedFacilities"]
}
export interface BreakfastAmenityProps {
openingHours: RestaurantOpeningHours
alternateOpeningHours?: RestaurantOpeningHours
}

View File

@@ -3,5 +3,6 @@ import type { Hotel } from "@/types/hotel"
export type MeetingsAndConferencesSidePeekProps = {
meetingFacilities: Hotel["conferencesAndMeetings"]
descriptions: Hotel["hotelContent"]["texts"]["meetingDescription"]
hotelId: string
link?: string
}

View File

@@ -0,0 +1,6 @@
import type { BreakfastAmenityProps } from "./amenities"
export interface OpeningHoursProps extends BreakfastAmenityProps {
heading?: string
type?: "amenities" | "default"
}

View File

@@ -1,4 +1,4 @@
import type { RestaurantData, RestaurantOpeningHours } from "@/types/hotel"
import type { RestaurantData } from "@/types/hotel"
export enum DaysEnum {
Monday = "monday",
@@ -17,8 +17,3 @@ export interface RestaurantBarSidePeekProps {
export interface RestaurantBarItemProps {
restaurant: RestaurantData
}
export interface RestaurantBarOpeningHoursProps {
openingHours: RestaurantOpeningHours
alternateOpeningHours?: RestaurantOpeningHours
}