From cce14cbe1fd8efa15f7de7ed82f09a2922b39460 Mon Sep 17 00:00:00 2001 From: FRC Date: Wed, 7 Sep 2022 17:04:30 +0100 Subject: [PATCH] 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 --- .../portfolio/portfolio-value-section.tsx | 1 + web/pages/leaderboards.tsx | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/components/portfolio/portfolio-value-section.tsx b/web/components/portfolio/portfolio-value-section.tsx index a7bce6bf..a0006c60 100644 --- a/web/components/portfolio/portfolio-value-section.tsx +++ b/web/components/portfolio/portfolio-value-section.tsx @@ -44,6 +44,7 @@ export const PortfolioValueSection = memo( }} > + diff --git a/web/pages/leaderboards.tsx b/web/pages/leaderboards.tsx index 45c484c4..08819833 100644 --- a/web/pages/leaderboards.tsx +++ b/web/pages/leaderboards.tsx @@ -135,21 +135,20 @@ export default function Leaderboards(_props: { defaultIndex={1} tabs={[ { - title: 'All Time', - content: LeaderboardWithPeriod('allTime'), + title: 'Daily', + content: LeaderboardWithPeriod('daily'), }, - // TODO: Enable this near the end of July! - // { - // title: 'Monthly', - // content: LeaderboardWithPeriod('monthly'), - // }, { title: 'Weekly', content: LeaderboardWithPeriod('weekly'), }, { - title: 'Daily', - content: LeaderboardWithPeriod('daily'), + title: 'Monthly', + content: LeaderboardWithPeriod('monthly'), + }, + { + title: 'All Time', + content: LeaderboardWithPeriod('allTime'), }, ]} />