Add map-specific tournament creation link
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m31s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m31s
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
max-width: 1180px;
|
||||
min-height: 60vh;
|
||||
}
|
||||
.start-panel .tournament-map-action {
|
||||
margin-top: 12px;
|
||||
border-color: var(--green);
|
||||
color: var(--green);
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tournament-page .eyebrow,
|
||||
.tournament-server-clock,
|
||||
.tournament-card p,
|
||||
|
||||
@@ -2,13 +2,20 @@ import { Header, Footer } from "@/components/Shell";
|
||||
import { TournamentIndex } from "@/components/TournamentLobby";
|
||||
import { user } from "@/lib/supabase";
|
||||
|
||||
export default async function TournamentsPage() {
|
||||
export default async function TournamentsPage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ map?: string | string[] }>;
|
||||
}) {
|
||||
const account = await user();
|
||||
const { map } = await searchParams;
|
||||
const initialMapId =
|
||||
typeof map === "string" && /^[0-9a-f-]{36}$/i.test(map) ? map : null;
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main id="main-content">
|
||||
<TournamentIndex signedIn={!!account} />
|
||||
<TournamentIndex signedIn={!!account} initialMapId={initialMapId} />
|
||||
</main>
|
||||
<Footer />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user