From 0c4969d2a43fae52330e767285cf1983b53ce0be Mon Sep 17 00:00:00 2001 From: corlard3y Date: Fri, 12 Jul 2024 12:58:10 +0100 Subject: [PATCH 1/2] fix leaderboard issues --- src/modules/rewards/components/LeaderBoardListItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/rewards/components/LeaderBoardListItem.tsx b/src/modules/rewards/components/LeaderBoardListItem.tsx index bbc8671d9f..f2839559d0 100644 --- a/src/modules/rewards/components/LeaderBoardListItem.tsx +++ b/src/modules/rewards/components/LeaderBoardListItem.tsx @@ -63,7 +63,7 @@ const LeaderboardListItem: FC = ({ rank, address, poin variant="bm-bold" color={{ light: 'gray-1000', dark: 'gray-100' }} > - {rank} + {rank > 0 && rank} = ({ rank, address, poin display={{ ml: 'none', dp: 'block' }} color={{ light: 'gray-1000', dark: 'gray-100' }} > - {points} + {points?.toLocaleString()} - {points} + {points?.toLocaleString()} From ad376e53553bf72ecc5ed4f1be439e229e45ee98 Mon Sep 17 00:00:00 2001 From: corlard3y Date: Sun, 14 Jul 2024 11:29:34 +0100 Subject: [PATCH 2/2] add scroll bar visible --- src/modules/rewards/components/LeaderBoardList.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/rewards/components/LeaderBoardList.tsx b/src/modules/rewards/components/LeaderBoardList.tsx index 454685d9a8..dfadfbc427 100644 --- a/src/modules/rewards/components/LeaderBoardList.tsx +++ b/src/modules/rewards/components/LeaderBoardList.tsx @@ -1,6 +1,7 @@ // React and other libraries import { FC } from 'react'; import InfiniteScroll from 'react-infinite-scroller'; +import { css } from 'styled-components'; //Hooks import { useGetRewardsLeaderboard, ModelledLeaderBoardUser } from 'queries'; @@ -41,7 +42,12 @@ const LeaderBoardList: FC = () => {