feat(SW-1464): Added meeting url instead of hotel url for hotellisting with meeting information

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-03-18 07:01:56 +00:00
parent d5b47be2f2
commit da3a7c1865
11 changed files with 85 additions and 33 deletions

View File

@@ -15,7 +15,7 @@ export default async function HotelListing({
}: HotelListingProps) {
const hotels = await getHotelsByCSFilter({
locationFilter,
hotelsToInclude: hotelsToInclude,
hotelsToInclude,
})
if (!hotels.length) {
@@ -27,10 +27,11 @@ export default async function HotelListing({
<Title level="h4" as="h3" textTransform="capitalize">
{heading}
</Title>
{hotels.map(({ url, ...data }) => (
{hotels.map(({ url, hotel, additionalData }) => (
<HotelListingItem
key={data.hotel.name}
hotel={data.hotel}
key={hotel.name}
hotel={hotel}
additionalData={additionalData}
contentType={contentType}
url={url}
/>