group 'rankings' => 'leaderboards' (friendlier, more consistent terminology)
This commit is contained in:
parent
c8361f1748
commit
b60892fada
|
@ -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}` : ''}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user