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:
@@ -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]
|
||||
|
||||
@@ -5,6 +5,7 @@ export interface RoomCardProps {
|
||||
}
|
||||
|
||||
export type RoomsProps = {
|
||||
heading: string
|
||||
preamble?: string
|
||||
rooms: Room[]
|
||||
}
|
||||
|
||||
27
apps/scandic-web/types/components/hotelPage/sections.ts
Normal file
27
apps/scandic-web/types/components/hotelPage/sections.ts
Normal 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
|
||||
}
|
||||
@@ -6,4 +6,5 @@ export type MeetingsAndConferencesSidePeekProps = {
|
||||
descriptions: Hotel["hotelContent"]["texts"]["meetingDescription"]
|
||||
meetingRooms: MeetingRooms
|
||||
meetingPageUrl: string | undefined
|
||||
heading: string
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { Restaurant } from "@/types/hotel"
|
||||
|
||||
export interface RestaurantBarSidePeekProps {
|
||||
restaurants: Restaurant[]
|
||||
heading: string
|
||||
}
|
||||
|
||||
export interface RestaurantBarItemProps {
|
||||
|
||||
@@ -7,4 +7,5 @@ export type WellnessAndExerciseSidePeekProps = {
|
||||
buttonCTA: string
|
||||
url: string
|
||||
}
|
||||
heading: string
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user