Updated nextjs version

This commit is contained in:
2025-09-03 13:36:36 +02:00
parent 5019b80c1f
commit a5cfbed065
10 changed files with 49 additions and 182 deletions

View File

@@ -1,7 +1,7 @@
import Header from "@/components/header"
import { ReactNode } from "react"
export default function StatsLayout({ children }: Readonly<{ children: ReactNode }>) {
export default function StatsLayout({ children }: LayoutProps<"/">) {
return (
<>
<Header searchBar />

View File

@@ -20,7 +20,7 @@ export async function generateMetadata({ params }: { params: Promise<{ ign: stri
return { title: user !== null ? user.name : "Player not found" }
}
export default async function PlayerPage({ params }: { params: Promise<{ ign: string }> }) {
export default async function PlayerPage({ params }: PageProps<"/player/[ign]">) {
const { ign } = await params
return (