diff --git a/src/api/leaderboard.ts b/src/api/leaderboard.ts index 1ba6131c6..5e87b120f 100644 --- a/src/api/leaderboard.ts +++ b/src/api/leaderboard.ts @@ -1,7 +1,7 @@ import { type APIContext } from 'astro'; import { api } from './api.ts'; -export type LeadeboardUserDetails = { +export type LeaderboardUserDetails = { id: string; name: string; avatar?: string; @@ -10,15 +10,15 @@ export type LeadeboardUserDetails = { export type ListLeaderboardStatsResponse = { streaks: { - active: LeadeboardUserDetails[]; - lifetime: LeadeboardUserDetails[]; + active: LeaderboardUserDetails[]; + lifetime: LeaderboardUserDetails[]; }; projectSubmissions: { - currentMonth: LeadeboardUserDetails[]; - lifetime: LeadeboardUserDetails[]; + currentMonth: LeaderboardUserDetails[]; + lifetime: LeaderboardUserDetails[]; }; githubContributors: { - currentMonth: LeadeboardUserDetails[]; + currentMonth: LeaderboardUserDetails[]; }; }; diff --git a/src/components/Leaderboard/LeaderboardPage.tsx b/src/components/Leaderboard/LeaderboardPage.tsx index ba0da269e..63a268779 100644 --- a/src/components/Leaderboard/LeaderboardPage.tsx +++ b/src/components/Leaderboard/LeaderboardPage.tsx @@ -1,10 +1,10 @@ import { type ReactNode, useState } from 'react'; import type { - LeadeboardUserDetails, + LeaderboardUserDetails, ListLeaderboardStatsResponse, } from '../../api/leaderboard'; import { cn } from '../../lib/classname'; -import { FolderKanban, GitPullRequest, Trophy, Zap } from 'lucide-react'; +import { FolderKanban, GitPullRequest, Users2, Zap } from 'lucide-react'; import { TrophyEmoji } from '../ReactIcons/TrophyEmoji'; import { SecondPlaceMedalEmoji } from '../ReactIcons/SecondPlaceMedalEmoji'; import { ThirdPlaceMedalEmoji } from '../ReactIcons/ThirdPlaceMedalEmoji'; @@ -17,74 +17,60 @@ export function LeaderboardPage(props: LeaderboardPageProps) { const { stats } = props; return ( -
- Top users based on their activity on roadmap.sh -
-