|
|
@ -34,8 +34,14 @@ export function LeaderboardPage(props: LeaderboardPageProps) { |
|
|
|
title="Longest Visit Streak" |
|
|
|
title="Longest Visit Streak" |
|
|
|
tabs={[ |
|
|
|
tabs={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'All Time', |
|
|
|
title: 'Active', |
|
|
|
users: stats.longestStreaks, |
|
|
|
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" />, |
|
|
|
emptyIcon: <Zap className="size-16 text-gray-300" />, |
|
|
|
emptyText: 'No users with streaks yet', |
|
|
|
emptyText: 'No users with streaks yet', |
|
|
|
}, |
|
|
|
}, |
|
|
|