mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
rever to 9615d4fecd
This commit is contained in:
@@ -11,7 +11,6 @@ export default function AdminLayout({ children}) {
|
||||
<ul className='flex' >
|
||||
<Link href="/admin"><li className="p-5 bg-gray-800 hover:bg-gray-600 transition-all cursor-pointer h-full">Admin</li></Link>
|
||||
<Link href="/admin/teams"><li className="p-5 bg-gray-800 hover:bg-gray-600 transition-all cursor-pointer h-full">Teams</li></Link>
|
||||
<Link href="/admin/map"><li className="p-5 bg-gray-800 hover:bg-gray-600 transition-all cursor-pointer h-full">Map</li></Link>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="h-full overflow-y-scroll">
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
"use client";
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const LiveMap = dynamic(() => import('@/components/admin/maps').then((mod) => mod.LiveMap), {
|
||||
ssr: false
|
||||
});
|
||||
export default function LiveMapPage() {
|
||||
return <LiveMap />
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import dynamic from "next/dynamic";
|
||||
const ZoneSelector = dynamic(() => import('@/components/admin/zoneSelector').then((mod) => mod.ZoneSelector), {
|
||||
ssr: false
|
||||
});
|
||||
const ZoneEditor = dynamic(() => import('@/components/admin/maps').then((mod) => mod.ZoneEditor), {
|
||||
const LiveMap = dynamic(() => import('@/components/admin/mapPicker').then((mod) => mod.LiveMap), {
|
||||
ssr: false
|
||||
});
|
||||
export default function AdminPage() {
|
||||
@@ -36,7 +36,7 @@ export default function AdminPage() {
|
||||
{(gameState == GameState.SETUP || gameState == GameState.PLACEMENT) && <ZoneSelector />}
|
||||
{(gameState == GameState.SETUP || gameState == GameState.PLACEMENT) && <PenaltySettings />}
|
||||
{gameState == GameState.PLAYING && <div className='grow flex-1 row-span-2 bg-white p-10 flex shadow-2xl'>
|
||||
<ZoneEditor />
|
||||
<LiveMap />
|
||||
</div>}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user