make the players name clickable on the per score leaderboard
All checks were successful
Deploy SSR / deploy (push) Successful in 1m20s

This commit is contained in:
Lee 2024-09-13 00:13:42 +01:00
parent a3fa98b184
commit 983ccba37e

View File

@ -1,5 +1,6 @@
import ScoreSaberScore from "@/common/data-fetcher/types/scoresaber/scoresaber-score";
import Image from "next/image";
import Link from "next/link";
type Props = {
score: ScoreSaberScore;
@ -19,9 +20,13 @@ export default function LeaderboardPlayer({ score }: Props) {
className="rounded-md min-w-[48px]"
priority
/>
<div>
<Link
href={`/player/${player.id}`}
target="_blank"
className="h-fit hover:brightness-75 transition-all transform-gpu"
>
<p>{player.name}</p>
</div>
</Link>
</div>
);
}