feat(SW-1409): Synced tabnavigation headings and section headings on hotel pages

* feat(SW-2409): Added same headings to relevant sidepeeks


Approved-by: Christian Andolf
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-03 09:22:28 +00:00
parent a47b2f46d3
commit be98c2faf6
19 changed files with 251 additions and 219 deletions

View File

@@ -1,3 +1,5 @@
import type { HotelHashValues } from "@/types/enums/hotelPage"
export interface HotelPageProps {
hotelId: string
}
@@ -10,3 +12,6 @@ export enum SidepeekSlugs {
meetings = "meetings",
wellness = "wellness",
}
export type HotelHashValue =
(typeof HotelHashValues)[keyof typeof HotelHashValues]

View File

@@ -5,6 +5,7 @@ export interface RoomCardProps {
}
export type RoomsProps = {
heading: string
preamble?: string
rooms: Room[]
}

View File

@@ -0,0 +1,27 @@
import type { HotelHashValue } from "./hotelPage"
export interface HotelPageSectionHeadings {
overview?: string | null
rooms?: string | null
restaurant_bar?: string | null
conferences_meetings?: string | null
health_wellness?: string | null
activities?: string | null
offers?: string | null
faq?: string | null
}
interface HotelPageSection {
hash: HotelHashValue
heading: string
}
export interface HotelPageSections {
overview: HotelPageSection
rooms: HotelPageSection
restaurant?: HotelPageSection
meetings?: HotelPageSection
wellness?: HotelPageSection
activities?: HotelPageSection
faq?: HotelPageSection
}

View File

@@ -6,4 +6,5 @@ export type MeetingsAndConferencesSidePeekProps = {
descriptions: Hotel["hotelContent"]["texts"]["meetingDescription"]
meetingRooms: MeetingRooms
meetingPageUrl: string | undefined
heading: string
}

View File

@@ -2,6 +2,7 @@ import type { Restaurant } from "@/types/hotel"
export interface RestaurantBarSidePeekProps {
restaurants: Restaurant[]
heading: string
}
export interface RestaurantBarItemProps {

View File

@@ -7,4 +7,5 @@ export type WellnessAndExerciseSidePeekProps = {
buttonCTA: string
url: string
}
heading: string
}

View File

@@ -1,29 +0,0 @@
export enum HotelHashValues {
overview = "overview",
rooms = "rooms",
restaurant = "restaurants",
meetings = "meetings",
wellness = "wellness",
activities = "activities",
faq = "faq",
}
type Tabs = {
overview?: string | null
rooms?: string | null
restaurant_bar?: string | null
conferences_meetings?: string | null
health_wellness?: string | null
activities?: string | null
offers?: string | null
faq?: string | null
}
export type TabNavigationProps = {
hasActivities: boolean
hasFAQ: boolean
hasWellness: boolean
hasRestaurants: boolean
hasMeetingRooms: boolean
tabValues?: Tabs | null
}

View File

@@ -7,3 +7,13 @@ export namespace HotelPageEnum {
}
}
}
export const HotelHashValues = {
overview: "overview",
rooms: "rooms",
restaurant: "restaurants",
meetings: "meetings",
wellness: "wellness",
activities: "activities",
faq: "faq",
} as const