-
-
{detail.user.name}
-
- {detail.winLose} ({detail.score})
-
+
+
+
+
{detail.user.name}
+
+ {detail.winLose} ({detail.score})
-
+
);
}
diff --git a/frontend/app/ui/user/user-list.tsx b/frontend/app/ui/user/user-list.tsx
index bd9c3d33..6e546d09 100644
--- a/frontend/app/ui/user/user-list.tsx
+++ b/frontend/app/ui/user/user-list.tsx
@@ -1,7 +1,6 @@
import type { PublicUserEntity } from "@/app/lib/dtos";
import { TooltipProvider } from "@/components/ui/tooltip";
-import { AvatarSize } from "./avatar";
-import UserTooltip from "./user-tool-tip";
+import { Avatar, AvatarSize } from "./avatar";
export default function UserList({
users,
@@ -15,7 +14,13 @@ export default function UserList({
{users.length === 0 &&
No users to display
}
{users.map((u) => (
-
+
))}
diff --git a/frontend/app/ui/user/user-tool-tip.tsx b/frontend/app/ui/user/user-tool-tip.tsx
deleted file mode 100644
index 76f76ecd..00000000
--- a/frontend/app/ui/user/user-tool-tip.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { PublicUserEntity } from "@/app/lib/dtos";
-import {
- Tooltip,
- TooltipContent,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
-import Link from "next/link";
-import { Avatar, AvatarSize } from "./avatar";
-
-// This component has to be used with TooltipProvider
-export default function UserTooltip({
- user,
- avatarSize,
-}: {
- user: PublicUserEntity;
- avatarSize: AvatarSize;
-}) {
- return (
-
-
-
-
-
-
- {user.name}
-
- );
-}