group 'rankings' => 'leaderboards' (friendlier, more consistent terminology)

This commit is contained in:
mantikoros 2022-07-20 11:15:55 -05:00
parent c8361f1748
commit b60892fada
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ export const groups = coll<Group>('groups')
export function groupPath( export function groupPath(
groupSlug: string, 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}` : ''}` return `/group/${groupSlug}${subpath ? `/${subpath}` : ''}`
} }

View File

@ -113,7 +113,7 @@ const groupSubpages = [
undefined, undefined,
GROUP_CHAT_SLUG, GROUP_CHAT_SLUG,
'questions', 'questions',
'rankings', 'leaderboards',
'about', 'about',
] as const ] as const
@ -236,9 +236,9 @@ export default function GroupPage(props: {
href: groupPath(group.slug, 'questions'), href: groupPath(group.slug, 'questions'),
}, },
{ {
title: 'Rankings', title: 'Leaderboards',
content: leaderboard, content: leaderboard,
href: groupPath(group.slug, 'rankings'), href: groupPath(group.slug, 'leaderboards'),
}, },
{ {
title: 'About', title: 'About',
@ -487,14 +487,14 @@ function GroupLeaderboards(props: {
<SortedLeaderboard <SortedLeaderboard
users={members} users={members}
scoreFunction={(user) => traderScores[user.id] ?? 0} scoreFunction={(user) => traderScores[user.id] ?? 0}
title="🏅 Bettor rankings" title="🏅 Top bettors"
header="Profit" header="Profit"
maxToShow={maxToShow} maxToShow={maxToShow}
/> />
<SortedLeaderboard <SortedLeaderboard
users={members} users={members}
scoreFunction={(user) => creatorScores[user.id] ?? 0} scoreFunction={(user) => creatorScores[user.id] ?? 0}
title="🏅 Creator rankings" title="🏅 Top creators"
header="Market volume" header="Market volume"
maxToShow={maxToShow} maxToShow={maxToShow}
/> />