fix(SW-188): improve semantics, use hotel instead of attribute naming
This commit is contained in:
@@ -25,7 +25,7 @@ export default async function HotelPage() {
|
||||
include: ["RoomCategories"],
|
||||
})
|
||||
if (!hotelData) return null
|
||||
const { attributes, roomCategories } = hotelData
|
||||
const { hotel, roomCategories } = hotelData
|
||||
|
||||
return (
|
||||
<div className={styles.pageContainer}>
|
||||
@@ -33,14 +33,14 @@ export default async function HotelPage() {
|
||||
<main className={styles.mainSection}>
|
||||
<div className={styles.introContainer}>
|
||||
<IntroSection
|
||||
hotelName={attributes.name}
|
||||
hotelDescription={attributes.hotelContent.texts.descriptions.short}
|
||||
location={attributes.location}
|
||||
address={attributes.address}
|
||||
tripAdvisor={attributes.ratings?.tripAdvisor}
|
||||
hotelName={hotel.name}
|
||||
hotelDescription={hotel.hotelContent.texts.descriptions.short}
|
||||
location={hotel.location}
|
||||
address={hotel.address}
|
||||
tripAdvisor={hotel.ratings?.tripAdvisor}
|
||||
/>
|
||||
<SidePeeks />
|
||||
<AmenitiesList detailedFacilities={attributes.detailedFacilities} />
|
||||
<AmenitiesList detailedFacilities={hotel.detailedFacilities} />
|
||||
</div>
|
||||
<Rooms rooms={roomCategories} />
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user