Skip to content

Commit

Permalink
add link to leaderboard row for seo
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu committed Feb 28, 2024
1 parent 8b252a9 commit cda9845
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/LeaderboardRow.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { LeaderboardUser } from "@/lib/user";
import Link from "next/link";
import { useRouter } from "next/navigation";

export default function LeaderboardRow({
Expand All @@ -19,7 +20,11 @@ export default function LeaderboardRow({
return (
<tr className="hover" onClick={() => onClick()}>
<td>{rank}</td>
<td>{user.name}</td>
<td>
<Link className="link link-primary" href={`/user/${user.name}`}>
{user.name}
</Link>
</td>
<td>{user.kills}</td>
<td>{user.deaths}</td>
<td>{user.wins}</td>
Expand Down

0 comments on commit cda9845

Please sign in to comment.