diff --git a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx index 2a623f322..c803b8159 100644 --- a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx +++ b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx @@ -1,5 +1,5 @@ import { headers } from "next/headers" -import { notFound,redirect } from "next/navigation" +import { notFound, redirect } from "next/navigation" import { overview } from "@/constants/routes/myPages" import { isSignupPage } from "@/constants/routes/signup" @@ -7,16 +7,16 @@ import { env } from "@/env/server" import { getHotelPage } from "@/lib/trpc/memoizedRequests" import { auth } from "@/auth" -import DestinationOverviewPage from "@/components/ContentType/DestinationOverviewPage" import DestinationCityPage from "@/components/ContentType/DestinationPage/DestinationCityPage" import DestinationCountryPage from "@/components/ContentType/DestinationPage/DestinationCountryPage" +import DestinationOverviewPage from "@/components/ContentType/DestinationPage/DestinationOverviewPage" import HotelPage from "@/components/ContentType/HotelPage" import HotelSubpage from "@/components/ContentType/HotelSubpage" import LoyaltyPage from "@/components/ContentType/LoyaltyPage" import StartPage from "@/components/ContentType/StartPage" import CollectionPage from "@/components/ContentType/StaticPages/CollectionPage" import ContentPage from "@/components/ContentType/StaticPages/ContentPage" -import { getLang,setLang } from "@/i18n/serverContext" +import { getLang, setLang } from "@/i18n/serverContext" import { isValidSession } from "@/utils/session" import type { diff --git a/components/ContentType/DestinationOverviewPage/OverviewMapContainer/OverviewMap/index.tsx b/components/ContentType/DestinationOverviewPage/OverviewMapContainer/OverviewMap/index.tsx deleted file mode 100644 index 2e0684967..000000000 --- a/components/ContentType/DestinationOverviewPage/OverviewMapContainer/OverviewMap/index.tsx +++ /dev/null @@ -1,62 +0,0 @@ -"use client" -import { Map, type MapProps, useMap } from "@vis.gl/react-google-maps" -import { useIntl } from "react-intl" - -import { MinusIcon, PlusIcon } from "@/components/Icons" -import Button from "@/components/TempDesignSystem/Button" - -import styles from "./overviewMap.module.css" - -import type { OverviewMapProps } from "@/types/components/destinationOverviewPage/overviewMap/overviewMap" - -export default function OverviewMap({ mapId }: OverviewMapProps) { - const map = useMap() - const intl = useIntl() - - // Placeholder value, currently these coordinates are Stockholm - const defaultCenter = { - lat: 59.3293, - lng: 18.0686, - } - - const mapOptions: MapProps = { - defaultZoom: 4, - minZoom: 3, - defaultCenter: defaultCenter, - disableDefaultUI: true, - clickableIcons: false, - mapId: mapId, - } - - function zoomIn() { - const currentZoom = map && map.getZoom() - if (currentZoom) { - map.setZoom(currentZoom + 1) - } - } - - function zoomOut() { - const currentZoom = map && map.getZoom() - if (currentZoom) { - map.setZoom(currentZoom - 1) - } - } - - const zoomControls = ( -