feat: adjust select rate ui to latest design

This commit is contained in:
Simon Emanuelsson
2025-02-17 15:10:48 +01:00
parent 2c72957dc6
commit 4c23700d52
76 changed files with 819 additions and 654 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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>

View File

@@ -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