From 1440b4dbae40eccc2d823048dd7640d89d4015df Mon Sep 17 00:00:00 2001 From: Niclas Edenvin Date: Wed, 25 Sep 2024 17:44:53 +0200 Subject: [PATCH] Move map out to its own component --- components/ContentType/HotelPage/Map/DynamicMap/index.tsx | 2 +- .../Map/DynamicMap/Map => Maps/InteractiveMap}/index.tsx | 4 ++-- .../InteractiveMap/interactiveMap.module.css} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename components/{ContentType/HotelPage/Map/DynamicMap/Map => Maps/InteractiveMap}/index.tsx (97%) rename components/{ContentType/HotelPage/Map/DynamicMap/Map/map.module.css => Maps/InteractiveMap/interactiveMap.module.css} (100%) diff --git a/components/ContentType/HotelPage/Map/DynamicMap/index.tsx b/components/ContentType/HotelPage/Map/DynamicMap/index.tsx index 785949be5..9fdddcf48 100644 --- a/components/ContentType/HotelPage/Map/DynamicMap/index.tsx +++ b/components/ContentType/HotelPage/Map/DynamicMap/index.tsx @@ -6,9 +6,9 @@ import { useIntl } from "react-intl" import useHotelPageStore from "@/stores/hotel-page" +import MapContent from "@/components/Maps/InteractiveMap" import { useHandleKeyUp } from "@/hooks/useHandleKeyUp" -import MapContent from "./Map" import Sidebar from "./Sidebar" import styles from "./dynamicMap.module.css" diff --git a/components/ContentType/HotelPage/Map/DynamicMap/Map/index.tsx b/components/Maps/InteractiveMap/index.tsx similarity index 97% rename from components/ContentType/HotelPage/Map/DynamicMap/Map/index.tsx rename to components/Maps/InteractiveMap/index.tsx index 60a30a9a3..ce18c2d77 100644 --- a/components/ContentType/HotelPage/Map/DynamicMap/Map/index.tsx +++ b/components/Maps/InteractiveMap/index.tsx @@ -18,11 +18,11 @@ import Button from "@/components/TempDesignSystem/Button" import Body from "@/components/TempDesignSystem/Text/Body" 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" -export default function MapContent({ +export default function InteractiveMap({ coordinates, pointsOfInterest, activePoi, diff --git a/components/ContentType/HotelPage/Map/DynamicMap/Map/map.module.css b/components/Maps/InteractiveMap/interactiveMap.module.css similarity index 100% rename from components/ContentType/HotelPage/Map/DynamicMap/Map/map.module.css rename to components/Maps/InteractiveMap/interactiveMap.module.css