Merged in feat/SW-1456-country-dynamic-map (pull request #1310)

feat(SW-1456): Added map and fetching hotels by country

* feat(SW-1456): Added map and fetching hotels by country


Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-02-12 09:15:33 +00:00
parent 3901c3ac77
commit bcfa84324f
33 changed files with 2211 additions and 187 deletions

View File

@@ -1,4 +1,4 @@
import { getHotels } from "@/lib/trpc/memoizedRequests"
import { getHotelsByCSFilter } from "@/lib/trpc/memoizedRequests"
import SectionContainer from "@/components/Section/Container"
import Title from "@/components/TempDesignSystem/Text/Title"
@@ -13,7 +13,7 @@ export default async function HotelListing({
hotelsToInclude,
contentType,
}: HotelListingProps) {
const hotels = await getHotels({
const hotels = await getHotelsByCSFilter({
locationFilter,
hotelsToInclude: hotelsToInclude,
})
@@ -27,7 +27,7 @@ export default async function HotelListing({
<Title level="h4" as="h3" textTransform="capitalize">
{heading}
</Title>
{hotels.map(({ data, url }) => (
{hotels.map(({ url, ...data }) => (
<HotelListingItem
key={data.hotel.name}
hotel={data.hotel}