Skip to content

Commit

Permalink
add cursor pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu committed Feb 29, 2024
1 parent cda9845 commit 4d730a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/LeaderboardRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default function LeaderboardRow({
}) {
const router = useRouter();

async function onClick() {
function onClick() {
router.push(`/user/${user.name}`);
}

return (
<tr className="hover" onClick={() => onClick()}>
<tr className="hover cursor-pointer" onClick={() => onClick()}>
<td>{rank}</td>
<td>
<Link className="link link-primary" href={`/user/${user.name}`}>
Expand Down

0 comments on commit 4d730a0

Please sign in to comment.