feat: some changes and admin
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { PlayersList } from '@/components/PlayersList';
|
||||
import { getPlayersForTournament } from '@/lib/data';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<{ tournament_key: string }>;
|
||||
};
|
||||
|
||||
export default async function TournamentPlayersPage({ params }: PageProps) {
|
||||
const { tournament_key } = await params;
|
||||
const players = await getPlayersForTournament(tournament_key);
|
||||
if (players === null) {
|
||||
notFound();
|
||||
}
|
||||
return <PlayersList players={players} />;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import style from '@/styles/web.module.scss';
|
||||
|
||||
export default function ScoreboardPage() {
|
||||
return (
|
||||
<div className={style.mainBody}>
|
||||
<div className={style.scoreboardImage} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
7
nextjs/src/app/(site)/tournaments/page.tsx
Normal file
7
nextjs/src/app/(site)/tournaments/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function TournamentsPage() {
|
||||
return (
|
||||
<div>
|
||||
<p>Tournaments</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user