diff --git a/app/[locale]/contact/page.tsx b/app/[locale]/contact/page.tsx index e3c7d354..741837d1 100644 --- a/app/[locale]/contact/page.tsx +++ b/app/[locale]/contact/page.tsx @@ -7,7 +7,7 @@ import { getTranslations } from 'next-intl/server'; import dynamic from 'next/dynamic'; const LeafletMap = dynamic(() => import('@/components/LeafletMap'), { -, + ssr: false, loading: () => (
Loading Map...
@@ -200,18 +200,13 @@ export default function ContactPage() { - {/* Map Placeholder */} + {/* Map Section */}
-
-
-
- - - -
-

{t('map.comingSoon')}

-
-
+
); diff --git a/components/LeafletMap.tsx b/components/LeafletMap.tsx index 5aae30dc..e3beaedd 100644 --- a/components/LeafletMap.tsx +++ b/components/LeafletMap.tsx @@ -3,7 +3,6 @@ import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; -import { useEffect } from 'react'; // Fix for default marker icon in Leaflet with Next.js const DefaultIcon = L.icon({ diff --git a/lib/schema.ts b/lib/schema.ts index 61293952..d6c23d56 100644 --- a/lib/schema.ts +++ b/lib/schema.ts @@ -1,4 +1,5 @@ +export const SITE_URL = 'https://klz-cables.com'; export const LOGO_URL = `${SITE_URL}/logo.png`; export const getOrganizationSchema = () => ({