fix for map load

This commit is contained in:
Roozbeh Karimi 2025-10-02 11:56:50 -04:00
parent d179e93781
commit 6c9361785a

View File

@ -1,4 +1,23 @@
import MapView from "@/views/map/page"; "use client";
import dynamic from "next/dynamic";
const MapView = dynamic(() => import("@/views/map/page"), {
ssr: false,
loading: () => (
<div
style={{
height: "100vh",
width: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "#f0f0f0",
}}
>
Loading map...
</div>
),
});
const Map = () => { const Map = () => {
return <MapView />; return <MapView />;