feat/dashboard-page #3

Merged
glazk0 merged 5 commits from feat/dashboard-page into main 2023-05-01 16:45:44 +02:00
Showing only changes of commit 1b9679d3fe - Show all commits

View file

@ -1,4 +1,5 @@
import Leaderboard from '@/ui/Leaderboard';
import { cookies } from 'next/headers';
export const metadata = {
title: 'Tableau des scores',
@ -6,5 +7,6 @@ export const metadata = {
};
export default async function Page() {
return <Leaderboard />;
const token = cookies().get('token')?.value;
return <Leaderboard token={token!} />;
}