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