feat: adjust select rate ui to latest design
This commit is contained in:
@@ -64,7 +64,7 @@ export default function HotelListingItem({
|
||||
</Caption>
|
||||
</div>
|
||||
</div>
|
||||
<Body>{hotel.hotelContent.texts.descriptions.short}</Body>
|
||||
<Body>{hotel.hotelContent.texts.descriptions?.short}</Body>
|
||||
<ul className={styles.amenityList}>
|
||||
{amenities.map((amenity) => {
|
||||
const IconComponent = mapFacilityToIcon(amenity.id)
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import type {
|
||||
Hotel,
|
||||
HotelAddress,
|
||||
HotelContent,
|
||||
HotelLocation,
|
||||
HotelTripAdvisor,
|
||||
} from "@/types/hotel"
|
||||
|
||||
export type IntroSectionProps = {
|
||||
address: HotelAddress
|
||||
hotelDescription: HotelContent["texts"]["descriptions"]["short"]
|
||||
hotelDescription: string | undefined
|
||||
hotelName: Hotel["name"]
|
||||
location: HotelLocation
|
||||
tripAdvisor: HotelTripAdvisor
|
||||
|
||||
@@ -35,7 +35,7 @@ export default async function AboutTheHotelSidePeek({
|
||||
ecoLabels={ecoLabels}
|
||||
/>
|
||||
<Divider color="baseSurfaceSubtleHover" />
|
||||
<Preamble>{descriptions.descriptions.medium}</Preamble>
|
||||
<Preamble>{descriptions.descriptions?.medium}</Preamble>
|
||||
<Body>{descriptions.facilityInformation}</Body>
|
||||
<Body>{descriptions.surroundingInformation}</Body>
|
||||
</section>
|
||||
|
||||
@@ -98,7 +98,7 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
} = hotelData.additionalData
|
||||
|
||||
const images = gallery?.smallerImages
|
||||
const description = hotelContent.texts.descriptions.medium
|
||||
const description = hotelContent.texts.descriptions?.medium
|
||||
|
||||
const { spaPage, activitiesCards } = content
|
||||
|
||||
@@ -107,9 +107,9 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
const hasWellness = healthFacilities.length > 0
|
||||
|
||||
const facilities = setFacilityCards(
|
||||
restaurantImages,
|
||||
conferencesAndMeetings,
|
||||
healthAndWellness,
|
||||
restaurantImages ?? undefined,
|
||||
conferencesAndMeetings ?? undefined,
|
||||
healthAndWellness ?? undefined,
|
||||
hasRestaurants,
|
||||
hasMeetingRooms,
|
||||
hasWellness
|
||||
|
||||
Reference in New Issue
Block a user