fixed theme toggle
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
"use client"
|
||||
import dynamic from "next/dynamic"
|
||||
const MyAwesomeMap = dynamic(() => import("./_components/Map"), { ssr: false })
|
||||
'use client';
|
||||
import dynamic from 'next/dynamic';
|
||||
const Map = dynamic(() => import('./_components/Map'), { ssr: false });
|
||||
|
||||
export default () => {
|
||||
|
||||
return <MyAwesomeMap />
|
||||
}
|
||||
return (
|
||||
<div className="relative flex-1">
|
||||
<Map />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user