diff --git a/src/components/player/PlayerChart.tsx b/src/components/player/PlayerChart.tsx
index d7206e0..f86ecfa 100644
--- a/src/components/player/PlayerChart.tsx
+++ b/src/components/player/PlayerChart.tsx
@@ -113,9 +113,5 @@ export default function PlayerChart({
],
};
- return (
-
-
-
- );
+ return ;
}
diff --git a/src/components/player/PlayerInfo.tsx b/src/components/player/PlayerInfo.tsx
index 31bcb64..2c24d71 100644
--- a/src/components/player/PlayerInfo.tsx
+++ b/src/components/player/PlayerInfo.tsx
@@ -20,7 +20,6 @@ import { useStore } from "zustand";
import Avatar from "../Avatar";
import Card from "../Card";
import Label from "../Label";
-import PlayerChart from "./PlayerChart";
const ReactCountryFlag = dynamic(() => import("react-country-flag"));
@@ -158,6 +157,7 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) {
)}
+
{/* Name */}
{playerData.name}
@@ -249,9 +249,6 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) {
>
)}
-
- {/* Chart */}
-
diff --git a/src/components/player/PlayerPage.tsx b/src/components/player/PlayerPage.tsx
index b994c8a..384c694 100644
--- a/src/components/player/PlayerPage.tsx
+++ b/src/components/player/PlayerPage.tsx
@@ -7,8 +7,11 @@ import Scores from "@/components/player/Scores";
import { ScoresaberPlayer } from "@/schemas/scoresaber/player";
import { SortTypes } from "@/types/SortTypes";
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
+import clsx from "clsx";
import dynamic from "next/dynamic";
+import Image from "next/image";
import { useEffect, useState } from "react";
+import PlayerChart from "./PlayerChart";
import PlayerInfo from "./PlayerInfo";
const Error = dynamic(() => import("@/components/Error"));
@@ -79,11 +82,38 @@ export default function PlayerPage({ id, sort, page }: PlayerPageProps) {
}
const playerData = player.player;
+ const badges = playerData.badges;
return (
+ {/* Chart */}
+
+ {/* Badges */}
+ 0 ? "block" : "hidden",
+ )}
+ >
+ {badges.map((badge) => {
+ return (
+
+ );
+ })}
+
+
+