fix: improve labels
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
type FacilityGrid,
|
||||
type FacilityImage,
|
||||
HealthFacilitiesEnum,
|
||||
MeetingsHeading,
|
||||
RestaurantHeadings,
|
||||
WellnessHeadings,
|
||||
} from "@/types/components/hotelPage/facilities"
|
||||
@@ -141,7 +142,7 @@ export function setFacilityCardGrids(
|
||||
HotelHashValues.meetings,
|
||||
facility.headingText,
|
||||
SidepeekSlugs.meetings,
|
||||
"Events that make an impression"
|
||||
MeetingsHeading.Default
|
||||
)
|
||||
grid.push(card)
|
||||
break
|
||||
@@ -165,6 +166,10 @@ export function setFacilityCardGrids(
|
||||
}
|
||||
|
||||
function getRestaurantHeading(amenities: Amenities): RestaurantHeadings {
|
||||
// For now return a generic message for all
|
||||
return RestaurantHeadings.generic
|
||||
|
||||
// TODO: Revisit logic below when Content team decides to do so.
|
||||
const hasBar = amenities.some(
|
||||
(facility) =>
|
||||
facility.id === FacilityEnum.Bar ||
|
||||
@@ -188,6 +193,10 @@ function getRestaurantHeading(amenities: Amenities): RestaurantHeadings {
|
||||
export function getWellnessHeading(
|
||||
healthFacilities: HealthFacilities
|
||||
): WellnessHeadings | undefined {
|
||||
// For now return a generic message for all
|
||||
return WellnessHeadings.generic
|
||||
|
||||
// TODO: Revisit logic below when Content team decides to do so.
|
||||
const hasGym = healthFacilities.some(
|
||||
(facility) => facility.type === HealthFacilitiesEnum.Gym
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user