add leaderboard page
All checks were successful
deploy / deploy (push) Successful in 56s

This commit is contained in:
Lee
2023-10-28 18:00:11 +01:00
parent e3450e23b1
commit b9fd569196
14 changed files with 390 additions and 21 deletions

View File

@ -0,0 +1,18 @@
import Leaderboard from "@/components/leaderboard/Leaderboard";
import { Metadata } from "next";
type Props = {
params: { id: string; page: string };
};
export async function generateMetadata({
params: { id },
}: Props): Promise<Metadata> {
return {
title: `Leaderboard - name`,
};
}
export default function RankingGlobal({ params: { id, page } }: Props) {
return <Leaderboard id={id} page={Number(page)} />;
}

View File

@ -1,4 +1,4 @@
import GlobalRanking from "@/components/player/GlobalRanking";
import GlobalRanking from "@/components/GlobalRanking";
import { Metadata } from "next";
export const metadata: Metadata = {

View File

@ -1,4 +1,4 @@
import GlobalRanking from "@/components/player/GlobalRanking";
import GlobalRanking from "@/components/GlobalRanking";
import { Metadata } from "next";
export const metadata: Metadata = {

View File

@ -2,7 +2,7 @@ import Card from "@/components/Card";
import Container from "@/components/Container";
import UnknownAvatar from "@/components/UnknownAvatar";
import SearchPlayer from "@/components/player/SearchPlayer";
import SearchPlayer from "@/components/SearchPlayer";
import { Metadata } from "next";
export const metadata: Metadata = {