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(
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}` : ''}`
}

View File

@ -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: {
<SortedLeaderboard
users={members}
scoreFunction={(user) => traderScores[user.id] ?? 0}
title="🏅 Bettor rankings"
title="🏅 Top bettors"
header="Profit"
maxToShow={maxToShow}
/>
<SortedLeaderboard
users={members}
scoreFunction={(user) => creatorScores[user.id] ?? 0}
title="🏅 Creator rankings"
title="🏅 Top creators"
header="Market volume"
maxToShow={maxToShow}
/>