diff --git a/src/modules/pointsVault/components/PointsVaultListContainer.tsx b/src/modules/pointsVault/components/PointsVaultListContainer.tsx index 06b2061eb8..bc08ae312c 100644 --- a/src/modules/pointsVault/components/PointsVaultListContainer.tsx +++ b/src/modules/pointsVault/components/PointsVaultListContainer.tsx @@ -33,56 +33,171 @@ const PointsVaultListContainer = () => { > Points Vault + + {userStats && ( - {userStats.totalUsers.toLocaleString()} + All Seasons - - Total Users - + + Total Users + + + {userStats.allSeasons.totalUniqueUsers?.toLocaleString()} + + + + + Total Users with Email + + + {userStats.allSeasons.totalUniqueUsersWithEmail?.toLocaleString()} + + - {userStats.totalUsersWithEmail.toLocaleString()} + Season 2 + + + Total Users + + + {userStats.seasonTwo.totalUsers?.toLocaleString()} + + + + + Total Users with Email + + + {userStats.seasonTwo.totalUsersWithEmail?.toLocaleString()} + + + + - With Email + Season 1 + + + Total Users + + + {userStats.seasonOne.totalUsers?.toLocaleString()} + + + + + Total Users with Email + + + {userStats.seasonOne.totalUsersWithEmail?.toLocaleString()} + + )} diff --git a/src/queries/types/rewards.ts b/src/queries/types/rewards.ts index d57b98737f..2ccfb72224 100644 --- a/src/queries/types/rewards.ts +++ b/src/queries/types/rewards.ts @@ -184,8 +184,18 @@ export type UserRewardsDetailResponse = { }; export type UserRewardsStatsResponse = { - totalUsers: number; - totalUsersWithEmail: number; + seasonOne: { + totalUsers: number; + totalUsersWithEmail: number; + }; + seasonTwo: { + totalUsers: number; + totalUsersWithEmail: number; + }; + allSeasons: { + totalUniqueUsers: number; + totalUniqueUsersWithEmail: number; + }; }; export type createUserRewardsDetailsProps = {