Move map out to its own component
This commit is contained in:
@@ -6,9 +6,9 @@ import { useIntl } from "react-intl"
|
|||||||
|
|
||||||
import useHotelPageStore from "@/stores/hotel-page"
|
import useHotelPageStore from "@/stores/hotel-page"
|
||||||
|
|
||||||
|
import MapContent from "@/components/Maps/InteractiveMap"
|
||||||
import { useHandleKeyUp } from "@/hooks/useHandleKeyUp"
|
import { useHandleKeyUp } from "@/hooks/useHandleKeyUp"
|
||||||
|
|
||||||
import MapContent from "./Map"
|
|
||||||
import Sidebar from "./Sidebar"
|
import Sidebar from "./Sidebar"
|
||||||
|
|
||||||
import styles from "./dynamicMap.module.css"
|
import styles from "./dynamicMap.module.css"
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ import Button from "@/components/TempDesignSystem/Button"
|
|||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
|
|
||||||
import styles from "./map.module.css"
|
import styles from "./interactiveMap.module.css"
|
||||||
|
|
||||||
import type { MapContentProps } from "@/types/components/hotelPage/map/mapContent"
|
import type { MapContentProps } from "@/types/components/hotelPage/map/mapContent"
|
||||||
|
|
||||||
export default function MapContent({
|
export default function InteractiveMap({
|
||||||
coordinates,
|
coordinates,
|
||||||
pointsOfInterest,
|
pointsOfInterest,
|
||||||
activePoi,
|
activePoi,
|
||||||
Reference in New Issue
Block a user