diff --git a/client/src/modules/Leaderboard/index.tsx b/client/src/modules/Leaderboard/index.tsx index a70b216..e7d9acf 100644 --- a/client/src/modules/Leaderboard/index.tsx +++ b/client/src/modules/Leaderboard/index.tsx @@ -1,8 +1,11 @@ import Community from '@components/shared/Community'; +import ListingCard from '@components/shared/ListingCard'; import Progression from '@components/shared/Progression'; -import Avatar from '@components/ui/Avatar'; -import Card from '@components/ui/Card'; +import Button from '@components/ui/Button'; import { useUsers } from '@hooks/data/useUsers'; +import { getSeedAvatar, getSeedName } from '@utils/common'; +import { Tooltip } from 'flowbite-react'; +import Image from 'next/image'; const Leaderboard = () => { const filter = { @@ -12,17 +15,38 @@ const Leaderboard = () => { }; const { users } = useUsers(filter); + const getUserLink = (id: string) => `/user/${id}`; + return ( <>
- -
Leaderboard
-
- {users?.map(({ id, name, avatar, points }) => ( - - ))} -
-
+
+ {users?.map(({ id, name, avatar, points, bio, email }) => ( + + + + } + image={ + avatar + } + /> + ))} +