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:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user