make the players name clickable on the per score leaderboard
All checks were successful
Deploy SSR / deploy (push) Successful in 1m20s
All checks were successful
Deploy SSR / deploy (push) Successful in 1m20s
This commit is contained in:
parent
a3fa98b184
commit
983ccba37e
@ -1,5 +1,6 @@
|
|||||||
import ScoreSaberScore from "@/common/data-fetcher/types/scoresaber/scoresaber-score";
|
import ScoreSaberScore from "@/common/data-fetcher/types/scoresaber/scoresaber-score";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
score: ScoreSaberScore;
|
score: ScoreSaberScore;
|
||||||
@ -19,9 +20,13 @@ export default function LeaderboardPlayer({ score }: Props) {
|
|||||||
className="rounded-md min-w-[48px]"
|
className="rounded-md min-w-[48px]"
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
<div>
|
<Link
|
||||||
|
href={`/player/${player.id}`}
|
||||||
|
target="_blank"
|
||||||
|
className="h-fit hover:brightness-75 transition-all transform-gpu"
|
||||||
|
>
|
||||||
<p>{player.name}</p>
|
<p>{player.name}</p>
|
||||||
</div>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user