This commit is contained in:
18
src/app/leaderboard/[id]/[page]/page.tsx
Normal file
18
src/app/leaderboard/[id]/[page]/page.tsx
Normal 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)} />;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import GlobalRanking from "@/components/player/GlobalRanking";
|
||||
import GlobalRanking from "@/components/GlobalRanking";
|
||||
import { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import GlobalRanking from "@/components/player/GlobalRanking";
|
||||
import GlobalRanking from "@/components/GlobalRanking";
|
||||
import { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
@ -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 = {
|
||||
|
Reference in New Issue
Block a user