Toggle monthly leaderboards (#790)
* Toggle monthly leaderboards I didn't get to enabling monthly leaderboards after my work trial was over (I enabled daily/weekly/alltime). The cache has been filled out for a while now, this toggles it on. * Fix nits
This commit is contained in:
parent
87060488f5
commit
cce14cbe1f
|
@ -44,6 +44,7 @@ export const PortfolioValueSection = memo(
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<option value="allTime">All time</option>
|
<option value="allTime">All time</option>
|
||||||
|
<option value="monthly">Last Month</option>
|
||||||
<option value="weekly">Last 7d</option>
|
<option value="weekly">Last 7d</option>
|
||||||
<option value="daily">Last 24h</option>
|
<option value="daily">Last 24h</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -135,21 +135,20 @@ export default function Leaderboards(_props: {
|
||||||
defaultIndex={1}
|
defaultIndex={1}
|
||||||
tabs={[
|
tabs={[
|
||||||
{
|
{
|
||||||
title: 'All Time',
|
title: 'Daily',
|
||||||
content: LeaderboardWithPeriod('allTime'),
|
content: LeaderboardWithPeriod('daily'),
|
||||||
},
|
},
|
||||||
// TODO: Enable this near the end of July!
|
|
||||||
// {
|
|
||||||
// title: 'Monthly',
|
|
||||||
// content: LeaderboardWithPeriod('monthly'),
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
title: 'Weekly',
|
title: 'Weekly',
|
||||||
content: LeaderboardWithPeriod('weekly'),
|
content: LeaderboardWithPeriod('weekly'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Daily',
|
title: 'Monthly',
|
||||||
content: LeaderboardWithPeriod('daily'),
|
content: LeaderboardWithPeriod('monthly'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'All Time',
|
||||||
|
content: LeaderboardWithPeriod('allTime'),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user