Add streaks for lifetime
This commit is contained in:
1 parent
dd5232f2f8
commit
989f7ad5c1
2 files changed
+12
-3
No files matched your search
@@ -9,7 +9,10 @@ export type LeadeboardUserDetails = {
|
||||
};
|
||||
|
||||
export type ListLeaderboardStatsResponse = {
|
||||
longestStreaks: LeadeboardUserDetails[];
|
||||
streaks: {
|
||||
active: LeadeboardUserDetails[];
|
||||
lifetime: LeadeboardUserDetails[];
|
||||
};
|
||||
projectSubmissions: {
|
||||
currentMonth: LeadeboardUserDetails[];
|
||||
lifetime: LeadeboardUserDetails[];
|
||||
|
||||
@@ -34,8 +34,14 @@ export function LeaderboardPage(props: LeaderboardPageProps) {
|
||||
title="Longest Visit Streak"
|
||||
tabs={[
|
||||
{
|
||||
title: 'All Time',
|
||||
users: stats.longestStreaks,
|
||||
title: 'Active',
|
||||
users: stats.streaks?.active || [],
|
||||
emptyIcon: <Zap className="size-16 text-gray-300" />,
|
||||
emptyText: 'No users with streaks yet',
|
||||
},
|
||||
{
|
||||
title: 'Lifetime',
|
||||
users: stats.streaks?.lifetime || [],
|
||||
emptyIcon: <Zap className="size-16 text-gray-300" />,
|
||||
emptyText: 'No users with streaks yet',
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user