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:
6
types/components/hotelPage/meetingRooms.ts
Normal file
6
types/components/hotelPage/meetingRooms.ts
Normal 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"]
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
6
types/components/hotelPage/sidepeek/openingHours.ts
Normal file
6
types/components/hotelPage/sidepeek/openingHours.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { BreakfastAmenityProps } from "./amenities"
|
||||
|
||||
export interface OpeningHoursProps extends BreakfastAmenityProps {
|
||||
heading?: string
|
||||
type?: "amenities" | "default"
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user