From ddd7f7742b6d300e8b8f5f4b779548ac59a90101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Akp=C4=B1nar?= Date: Fri, 30 Jun 2023 14:28:34 +0300 Subject: [PATCH] refactor: update placements design (#261) --- client/src/modules/Leaderboard/index.tsx | 44 ++++++++++++++++++------ 1 file changed, 34 insertions(+), 10 deletions(-) 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 + } + /> + ))} +