Merged in fix/SW-3289-sidepeek-cta-hotel (pull request #2697)

fix(SW-3289): add cta to sidepeek hotel

* fix(SW-3289): add cta to sidepeek hotel

* fix(SW-3289): add cta hotel card


Approved-by: Joakim Jäderberg
Approved-by: Matilda Landström
This commit is contained in:
Bianca Widstam
2025-08-25 13:05:58 +00:00
parent c54c1ec540
commit 42c7fb8510
4 changed files with 6 additions and 6 deletions

View File

@@ -182,7 +182,7 @@ export default function HotelCardListing({
}}
belowInfoSlot={
<HotelDetailsSidePeek
hotel={{ ...hotel.hotel, url: "" }}
hotel={{ ...hotel.hotel, url: hotel.url }}
restaurants={hotel.restaurants}
additionalHotelData={hotel.additionalData}
triggerLabel={intl.formatMessage({

View File

@@ -26,7 +26,7 @@ export default function HotelDescription({
additionalData,
}: {
description?: string
hotel: Hotel
hotel: Hotel & { url: string | null }
sortedFacilities: Hotel["detailedFacilities"]
restaurants: Restaurant[]
additionalData: AdditionalData | undefined
@@ -77,7 +77,7 @@ export default function HotelDescription({
{expanded && (
<div className={styles.expandedContent}>
<HotelDetailsSidePeek
hotel={{ ...hotel, url: null }}
hotel={hotel}
restaurants={restaurants}
additionalHotelData={additionalData}
triggerLabel={intl.formatMessage({

View File

@@ -27,7 +27,7 @@ import type { SelectRateBooking } from "@/types/components/hotelReservation/sele
export type HotelInfoCardProps = {
booking: SelectRateBooking
hotel: Hotel
hotel: Hotel & { url: string | null }
restaurants: Restaurant[]
additionalData: AdditionalData | undefined
}
@@ -114,7 +114,7 @@ export async function HotelInfoCard({
))}
</div>
<HotelDetailsSidePeek
hotel={{ ...hotel, url: null }}
hotel={hotel}
restaurants={restaurants}
additionalHotelData={additionalData}
triggerLabel={intl.formatMessage({

View File

@@ -30,7 +30,7 @@ export default async function SelectRatePage({
return (
<>
<HotelInfoCard
hotel={hotelData.hotel}
hotel={{ ...hotelData.hotel, url: hotelData.url }}
restaurants={hotelData.restaurants}
additionalData={hotelData.additionalData}
booking={booking}