feat(SW-750): change key name

This commit is contained in:
Fredrik Thorsson
2024-11-21 13:41:08 +01:00
parent ee7fabc6c8
commit ebb42d9bd5
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ export default async function HotelPage() {
const { const {
hotelId, hotelId,
hotelName, hotelName,
hotelDescription, hotelDescriptions,
hotelLocation, hotelLocation,
hotelAddress, hotelAddress,
hotelRatings, hotelRatings,
@@ -83,7 +83,7 @@ export default async function HotelPage() {
<div className={styles.introContainer}> <div className={styles.introContainer}>
<IntroSection <IntroSection
hotelName={hotelName} hotelName={hotelName}
hotelDescription={hotelDescription.descriptions.short} hotelDescription={hotelDescriptions.descriptions.short}
location={hotelLocation} location={hotelLocation}
address={hotelAddress} address={hotelAddress}
tripAdvisor={hotelRatings?.tripAdvisor} tripAdvisor={hotelRatings?.tripAdvisor}
@@ -143,7 +143,7 @@ export default async function HotelPage() {
contact={contact} contact={contact}
socials={socials} socials={socials}
ecoLabels={ecoLabels} ecoLabels={ecoLabels}
descriptions={hotelDescription} descriptions={hotelDescriptions}
/> />
<SidePeek <SidePeek
contentKey={hotelPageParams.restaurantAndBar[lang]} contentKey={hotelPageParams.restaurantAndBar[lang]}

View File

@@ -342,7 +342,7 @@ export const hotelQueryRouter = router({
return { return {
hotelId, hotelId,
hotelName: hotelAttributes.name, hotelName: hotelAttributes.name,
hotelDescription: hotelAttributes.hotelContent.texts, hotelDescriptions: hotelAttributes.hotelContent.texts,
hotelLocation: hotelAttributes.location, hotelLocation: hotelAttributes.location,
hotelAddress: hotelAttributes.address, hotelAddress: hotelAttributes.address,
hotelRatings: hotelAttributes.ratings, hotelRatings: hotelAttributes.ratings,