mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-25 20:50:14 -05:00
TO Tools roster link to user page
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { Link } from "@remix-run/react";
|
||||
import clsx from "clsx";
|
||||
import { Avatar } from "~/components/Avatar";
|
||||
import { Button } from "~/components/Button";
|
||||
import { TrashIcon } from "~/components/icons/Trash";
|
||||
import type { FindTeamsByEventIdItem } from "~/db/models/tournaments/queries.server";
|
||||
import { useUser } from "~/modules/auth";
|
||||
import { userPage } from "~/utils/urls";
|
||||
|
||||
export function TeamWithRoster({
|
||||
team,
|
||||
@@ -36,9 +38,12 @@ export function TeamWithRoster({
|
||||
</Button>
|
||||
)}
|
||||
<Avatar user={member} size="xxs" />
|
||||
<span className="tournament__team-member-name">
|
||||
<Link
|
||||
to={userPage(member)}
|
||||
className="tournament__team-member-name"
|
||||
>
|
||||
{member.discordName}
|
||||
</span>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
|
||||
.tournament__team-member-name {
|
||||
overflow: hidden;
|
||||
color: var(--text);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user