Changed leaderboard
This commit is contained in:
parent
a5e13c3dd2
commit
1b9679d3fe
1 changed files with 3 additions and 1 deletions
|
@ -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!} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue