refactor: removed unused page
This commit is contained in:
parent
066e7905a3
commit
f06a762325
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
||||||
import EventLeaderboard from '@/ui/events/Leaderboard';
|
|
||||||
import { cookies } from 'next/headers';
|
|
||||||
import { notFound } from 'next/navigation';
|
|
||||||
|
|
||||||
export const metadata = {
|
|
||||||
title: 'Tableau des scores - Peer-at Code',
|
|
||||||
description: 'Suivez la progression des élèves en direct'
|
|
||||||
};
|
|
||||||
|
|
||||||
export default async function Page({ params }: { params: { id: number } }) {
|
|
||||||
const { id } = params;
|
|
||||||
|
|
||||||
if (!id) {
|
|
||||||
notFound();
|
|
||||||
}
|
|
||||||
|
|
||||||
const token = cookies().get('token')?.value;
|
|
||||||
|
|
||||||
return <EventLeaderboard token={token!} id={id} />;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue