diff --git a/projects/website/src/components/leaderboard/leaderboard-score.tsx b/projects/website/src/components/leaderboard/leaderboard-score.tsx index 2d538a1..e3e0577 100644 --- a/projects/website/src/components/leaderboard/leaderboard-score.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-score.tsx @@ -6,6 +6,7 @@ import { clsx } from "clsx"; import Tooltip from "@/components/tooltip"; import { ScoreTimeSet } from "@/components/score/score-time-set"; import { ScoreModifiers } from "@/components/score/score-modifiers"; +import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard"; type Props = { /** @@ -13,13 +14,18 @@ type Props = { */ score: ScoreSaberScore; + /** + * The leaderboard for the score. + */ + leaderboard: ScoreSaberLeaderboard; + /** * The claimed player. */ claimedPlayer?: ScoreSaberPlayerToken; }; -export default function LeaderboardScore({ score, claimedPlayer }: Props) { +export default function LeaderboardScore({ score, leaderboard, claimedPlayer }: Props) { const scorePlayer = score.playerInfo; return ( @@ -54,7 +60,9 @@ export default function LeaderboardScore({ score, claimedPlayer }: Props) { {/* Score PP */} - {score.pp > 0 &&