diff --git a/src/app/(stats)/player/[ign]/_client.tsx b/src/app/(stats)/player/[ign]/_client.tsx index 5d23a0e..109db45 100644 --- a/src/app/(stats)/player/[ign]/_client.tsx +++ b/src/app/(stats)/player/[ign]/_client.tsx @@ -1,6 +1,8 @@ "use client" import { Accordion } from "@/components/ui/accordion" +import { COOKIE_VALUES } from "@/data/general" +import { Player } from "@/lib/schema/player" import { closestCenter, DndContext, DragEndEvent, KeyboardSensor, PointerSensor, useSensor, useSensors } from "@dnd-kit/core" import { arrayMove, SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from "@dnd-kit/sortable" import { useSortable } from "@dnd-kit/sortable" @@ -10,7 +12,6 @@ import { GripVertical } from "lucide-react" import { usePathname } from "next/navigation" import { useEffect, useState } from "react" -import { Player } from "@/lib/schema/player" import ArcadeStats from "./_stats/arcade/arcade" import BedwarsStats from "./_stats/bedwars/bedwars" import BlitzStats from "./_stats/blitz/blitz" @@ -25,6 +26,12 @@ import TNTGamesStats from "./_stats/tnt-games/tnt-games" import UHCStats from "./_stats/uhc/uhc" import WoolGamesStats from "./_stats/woolgames/woolgames" +export function PlayerPageLoadText() { + const path = usePathname() + + return
{`Loading stats for ${path.split("/").at(-1)}`}
+} + interface SortableStatItemProps { id: string children: React.ReactNode @@ -60,12 +67,6 @@ function SortableStatItem({ id, children }: SortableStatItemProps) { ) } -export function PlayerPageLoadText() { - const path = usePathname() - - return{`Loading stats for ${path.split("/").at(-1)}`}
-} - export default function PlayerStats( { stats, achievements, layout }: { stats: NonNullable