diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index 2c2cdbf..59410c9 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -3,9 +3,9 @@ import Card from "@/components/Card"; import Container from "@/components/Container"; import Error from "@/components/Error"; -import PlayerInfo from "@/components/PlayerInfo"; -import Scores from "@/components/Scores"; import { Spinner } from "@/components/Spinner"; +import PlayerInfo from "@/components/player/PlayerInfo"; +import Scores from "@/components/player/Scores"; import { ScoresaberPlayer } from "@/schemas/scoresaber/player"; import { useSettingsStore } from "@/store/settingsStore"; import { SortType, SortTypes } from "@/types/SortTypes"; diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 4d42868..17f32c6 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -2,7 +2,7 @@ import Avatar from "@/components/Avatar"; import Card from "@/components/Card"; import Container from "@/components/Container"; -import SearchPlayer from "@/components/SearchPlayer"; +import SearchPlayer from "@/components/player/SearchPlayer"; import { Metadata } from "next"; export const metadata: Metadata = { diff --git a/src/components/Label.tsx b/src/components/Label.tsx index 2b1a888..cfefc8c 100644 --- a/src/components/Label.tsx +++ b/src/components/Label.tsx @@ -3,16 +3,24 @@ import clsx from "clsx"; type LabelProps = { title: string; value: any; + hoverValue?: string; className?: string; }; export default function Label({ title, value, + hoverValue, className = "bg-neutral-700", }: LabelProps) { return ( -
{title}
diff --git a/src/components/PlayerChart.tsx b/src/components/player/PlayerChart.tsx similarity index 100% rename from src/components/PlayerChart.tsx rename to src/components/player/PlayerChart.tsx diff --git a/src/components/PlayerInfo.tsx b/src/components/player/PlayerInfo.tsx similarity index 92% rename from src/components/PlayerInfo.tsx rename to src/components/player/PlayerInfo.tsx index 7f47a56..ad441dc 100644 --- a/src/components/PlayerInfo.tsx +++ b/src/components/player/PlayerInfo.tsx @@ -8,9 +8,9 @@ import { useRef } from "react"; import ReactCountryFlag from "react-country-flag"; import { toast } from "react-toastify"; import { useStore } from "zustand"; -import Avatar from "./Avatar"; -import Card from "./Card"; -import Label from "./Label"; +import Avatar from "../Avatar"; +import Card from "../Card"; +import Label from "../Label"; import PlayerChart from "./PlayerChart"; type PlayerInfoProps = { @@ -119,16 +119,19 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) { > )} diff --git a/src/components/Score.tsx b/src/components/player/Score.tsx similarity index 100% rename from src/components/Score.tsx rename to src/components/player/Score.tsx diff --git a/src/components/ScoreStatLabel.tsx b/src/components/player/ScoreStatLabel.tsx similarity index 81% rename from src/components/ScoreStatLabel.tsx rename to src/components/player/ScoreStatLabel.tsx index 988e757..7d0cf97 100644 --- a/src/components/ScoreStatLabel.tsx +++ b/src/components/player/ScoreStatLabel.tsx @@ -14,7 +14,12 @@ export default function ScoreStatLabel({ className = "bg-neutral-700", }: LabelProps) { return ( -