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={ belowInfoSlot={
<HotelDetailsSidePeek <HotelDetailsSidePeek
hotel={{ ...hotel.hotel, url: "" }} hotel={{ ...hotel.hotel, url: hotel.url }}
restaurants={hotel.restaurants} restaurants={hotel.restaurants}
additionalHotelData={hotel.additionalData} additionalHotelData={hotel.additionalData}
triggerLabel={intl.formatMessage({ triggerLabel={intl.formatMessage({

View File

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

View File

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

View File

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