From 43612b242683bde7952408f761d357c0c6edaca9 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Sat, 27 Jan 2024 00:16:13 +0700 Subject: [PATCH] chore: update wording to add comments in leaderboard stats --- .../leaderboard/GeneralLeaderboardPage.tsx | 8 +++++--- .../leaderboard/UserLeaderboardPage.tsx | 16 ++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/leaderboard/GeneralLeaderboardPage.tsx b/src/components/leaderboard/GeneralLeaderboardPage.tsx index 44955a299..78c603372 100644 --- a/src/components/leaderboard/GeneralLeaderboardPage.tsx +++ b/src/components/leaderboard/GeneralLeaderboardPage.tsx @@ -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', @@ -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', diff --git a/src/components/leaderboard/UserLeaderboardPage.tsx b/src/components/leaderboard/UserLeaderboardPage.tsx index f6799a6d1..751c5e156 100644 --- a/src/components/leaderboard/UserLeaderboardPage.tsx +++ b/src/components/leaderboard/UserLeaderboardPage.tsx @@ -33,8 +33,8 @@ const stats: Record = { 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', @@ -58,8 +58,8 @@ const stats: Record = { 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', @@ -84,8 +84,8 @@ const stats: Record = { 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', @@ -109,8 +109,8 @@ const stats: Record = { 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',