feat(SW-1864): Removed map functionality from country pages
* feat(SW-1864): Removed map functionality from country pages Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { Suspense } from "react"
|
import { Suspense } from "react"
|
||||||
|
|
||||||
import { env } from "@/env/server"
|
|
||||||
import { getDestinationCountryPage } from "@/lib/trpc/memoizedRequests"
|
import { getDestinationCountryPage } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
import Blocks from "@/components/Blocks"
|
import Blocks from "@/components/Blocks"
|
||||||
@@ -13,10 +12,8 @@ import CityListing from "../CityListing"
|
|||||||
import ExperienceList from "../ExperienceList"
|
import ExperienceList from "../ExperienceList"
|
||||||
import SidebarContentWrapper from "../SidebarContentWrapper"
|
import SidebarContentWrapper from "../SidebarContentWrapper"
|
||||||
import DestinationPageSidePeek from "../Sidepeek"
|
import DestinationPageSidePeek from "../Sidepeek"
|
||||||
import StaticMap from "../StaticMap"
|
|
||||||
import TopImages from "../TopImages"
|
import TopImages from "../TopImages"
|
||||||
import DestinationTracking from "../Tracking"
|
import DestinationTracking from "../Tracking"
|
||||||
import CountryMap from "./CountryMap"
|
|
||||||
import DestinationCountryPageSkeleton from "./DestinationCountryPageSkeleton"
|
import DestinationCountryPageSkeleton from "./DestinationCountryPageSkeleton"
|
||||||
|
|
||||||
import styles from "./destinationCountryPage.module.css"
|
import styles from "./destinationCountryPage.module.css"
|
||||||
@@ -77,19 +74,9 @@ export default async function DestinationCountryPage() {
|
|||||||
location={translatedCountry}
|
location={translatedCountry}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<StaticMap
|
|
||||||
country={destination_settings.country}
|
|
||||||
location={destination_settings.location}
|
|
||||||
/>
|
|
||||||
</SidebarContentWrapper>
|
</SidebarContentWrapper>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
<CountryMap
|
|
||||||
country={translatedCountry}
|
|
||||||
defaultLocation={destination_settings.location}
|
|
||||||
apiKey={env.GOOGLE_STATIC_MAP_KEY}
|
|
||||||
mapId={env.GOOGLE_DYNAMIC_MAP_ID}
|
|
||||||
/>
|
|
||||||
</CityDataContainer>
|
</CityDataContainer>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
<DestinationTracking pageData={tracking} />
|
<DestinationTracking pageData={tracking} />
|
||||||
|
|||||||
Reference in New Issue
Block a user