Skip to content

Commit

Permalink
Add profile link to leaderboard (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbrandao authored Feb 16, 2022
1 parent 9994b2c commit dceb3cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/moonstone/user/leaderboard/Table/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Link from "next/link";

export default function Table({ list, user, maxUsersToShow }) {
const toShow = list.slice(0, Math.min(maxUsersToShow, list.length));
const rows = toShow.map((entry, id) => (
Expand All @@ -14,7 +16,7 @@ export default function Table({ list, user, maxUsersToShow }) {
entry.id == user ? "text-quinary" : ""
}`}
>
{entry.name}
<Link href={`/attendees/${entry.id}`}>{entry.name}</Link>
</div>
<div
className={`w-1/3 text-right font-iregular ${
Expand Down

0 comments on commit dceb3cc

Please sign in to comment.