feat(sw-343): fixed map page (without modal)
This commit is contained in:
@@ -6,6 +6,7 @@ import { getLocations } from "@/lib/trpc/memoizedRequests"
|
||||
import {
|
||||
fetchAvailableHotels,
|
||||
generateChildrenString,
|
||||
getCentralCoordinates,
|
||||
getFiltersFromHotels,
|
||||
getPointOfInterests,
|
||||
} from "@/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/utils"
|
||||
@@ -55,15 +56,16 @@ export default async function SelectHotelMapPage({
|
||||
const filters = getFiltersFromHotels(hotels)
|
||||
|
||||
const pointOfInterests = getPointOfInterests(hotels)
|
||||
const centralCoordinates = getCentralCoordinates(pointOfInterests)
|
||||
|
||||
return (
|
||||
<main className={styles.main}>
|
||||
<SelectHotelMap
|
||||
apiKey={googleMapsApiKey}
|
||||
// TODO: use correct coordinates. The city center?
|
||||
coordinates={{ lat: 59.32, lng: 18.01 }}
|
||||
coordinates={centralCoordinates}
|
||||
pointsOfInterest={pointOfInterests}
|
||||
mapId={googleMapId}
|
||||
isModal={false}
|
||||
/>
|
||||
</main>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user