From b60892fada294e42481e1372a3f0474ee419fa64 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 20 Jul 2022 11:15:55 -0500 Subject: [PATCH] group 'rankings' => 'leaderboards' (friendlier, more consistent terminology) --- web/lib/firebase/groups.ts | 2 +- web/pages/group/[...slugs]/index.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/lib/firebase/groups.ts b/web/lib/firebase/groups.ts index 8adb5606..0122e2ee 100644 --- a/web/lib/firebase/groups.ts +++ b/web/lib/firebase/groups.ts @@ -22,7 +22,7 @@ export const groups = coll('groups') export function groupPath( groupSlug: string, - subpath?: 'edit' | 'questions' | 'about' | typeof GROUP_CHAT_SLUG | 'rankings' + subpath?: 'edit' | 'questions' | 'about' | typeof GROUP_CHAT_SLUG | 'leaderboards' ) { return `/group/${groupSlug}${subpath ? `/${subpath}` : ''}` } diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index 7cce843e..c6485a0e 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -113,7 +113,7 @@ const groupSubpages = [ undefined, GROUP_CHAT_SLUG, 'questions', - 'rankings', + 'leaderboards', 'about', ] as const @@ -236,9 +236,9 @@ export default function GroupPage(props: { href: groupPath(group.slug, 'questions'), }, { - title: 'Rankings', + title: 'Leaderboards', content: leaderboard, - href: groupPath(group.slug, 'rankings'), + href: groupPath(group.slug, 'leaderboards'), }, { title: 'About', @@ -487,14 +487,14 @@ function GroupLeaderboards(props: { traderScores[user.id] ?? 0} - title="🏅 Bettor rankings" + title="🏅 Top bettors" header="Profit" maxToShow={maxToShow} /> creatorScores[user.id] ?? 0} - title="🏅 Creator rankings" + title="🏅 Top creators" header="Market volume" maxToShow={maxToShow} />