chore: merge to sveltekit #5

Merged
glazk0 merged 15 commits from sveltekit into main 2023-09-04 13:38:33 +02:00
Showing only changes of commit f06a762325 - Show all commits

View file

@ -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} />;
}