Skip to content

Commit

Permalink
chore: update wording to add comments in leaderboard stats
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 26, 2024
1 parent 37b5c86 commit 43612b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions src/components/leaderboard/GeneralLeaderboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import styles from './GeneralLeaderboardPage.module.sass'
type Stat = { title: string; value: (data: GeneralStatistics) => ReactNode; tooltip: string }
const stats: Stat[] = [
{
title: 'Total posts liked',
title: 'Total posts and comments liked',
value: data => data.postsLiked,
tooltip: 'The total number of individual posts that were liked at least one time this week',
tooltip:
'The total number of individual posts or comments that were liked at least one time this week',
},
{
title: 'Total SUB earned by stakers',
Expand All @@ -35,7 +36,8 @@ const stats: Stat[] = [
{
title: 'Total creators liked',
value: data => data.creatorsLiked,
tooltip: 'The total number of individual creators that had one of their posts liked this week',
tooltip:
'The total number of individual creators that had one of their posts or comments liked this week',
},
{
title: 'Total SUB earned by creators',
Expand Down
16 changes: 8 additions & 8 deletions src/components/leaderboard/UserLeaderboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const stats: Record<LeaderboardRole, Stat[]> = {
value: data => data.creator.likesCountByPeriod,
tooltip: isMyAddress =>
isMyAddress
? 'The amount of likes that all of your posts received this week'
: "The amount of likes that all of this user's posts received this week",
? 'The amount of likes that all of your posts and comments received this week'
: "The amount of likes that all of this user's posts and comments received this week",
},
{
title: () => 'SUB earned this week',
Expand All @@ -58,8 +58,8 @@ const stats: Record<LeaderboardRole, Stat[]> = {
value: data => data.creator.stakersWhoLiked,
tooltip: isMyAddress =>
isMyAddress
? 'The amount of individual stakers that liked at least one of your posts this week'
: "The amount of individual stakers that liked at least one of this user's posts this week",
? 'The amount of individual stakers that liked at least one of your posts or comments this week'
: "The amount of individual stakers that liked at least one of this user's posts or comments this week",
},
{
title: () => 'SUB earned in total',
Expand All @@ -84,8 +84,8 @@ const stats: Record<LeaderboardRole, Stat[]> = {
value: data => data.staker.likedPosts,
tooltip: isMyAddress =>
isMyAddress
? 'The number of individual posts that you liked this week'
: 'The number of individual posts this user liked this week',
? 'The number of individual posts or comments that you liked this week'
: 'The number of individual posts or comments this user liked this week',
},
{
title: () => 'SUB earned this week',
Expand All @@ -109,8 +109,8 @@ const stats: Record<LeaderboardRole, Stat[]> = {
value: data => data.staker.likedCreators,
tooltip: isMyAddress =>
isMyAddress
? 'The number of individual creators that you supported this week by liking at least one of their posts'
: 'The number of individual creators that this user supported this week by liking at least one of their posts',
? 'The number of individual creators that you supported this week by liking at least one of their posts or comments'
: 'The number of individual creators that this user supported this week by liking at least one of their posts or comments',
},
{
title: () => 'SUB earned in total',
Expand Down

0 comments on commit 43612b2

Please sign in to comment.