diff --git a/src/components/leaderboard/common/LeaderboardTable.module.sass b/src/components/leaderboard/common/LeaderboardTable.module.sass index e1c07c6f3..a2c9617d2 100644 --- a/src/components/leaderboard/common/LeaderboardTable.module.sass +++ b/src/components/leaderboard/common/LeaderboardTable.module.sass @@ -49,3 +49,6 @@ .ModalContent overflow-x: clip !important + +.LinkTab + color: #000 diff --git a/src/components/leaderboard/common/LeaderboardTabs.tsx b/src/components/leaderboard/common/LeaderboardTabs.tsx index 48a044396..aa65ec762 100644 --- a/src/components/leaderboard/common/LeaderboardTabs.tsx +++ b/src/components/leaderboard/common/LeaderboardTabs.tsx @@ -6,6 +6,7 @@ import config from 'src/config' import { useSendEvent } from 'src/providers/AnalyticContext' import { useFetchTotalStake } from 'src/rtk/features/creators/totalStakeHooks' import { getAmountRange } from 'src/utils/analytics' +import styles from './LeaderboardTable.module.sass' export default function LeaderboardTabs({ activeKey, @@ -19,7 +20,6 @@ export default function LeaderboardTabs({ return ( <> { if (key === 'user') { @@ -29,13 +29,13 @@ export default function LeaderboardTabs({ role: 'staker', amountRange: getAmountRange(totalStake?.amount), }) - router.push(`/leaderboard/${myAddress}?role=staker`, undefined, { shallow: true }) + router.push(`/c/leaderboard/${myAddress}`, undefined, { shallow: true }) } else if (key === 'general') { sendEvent('leaderboard_global_stats_opened', { eventSource: 'leaderboard_tab', amountRange: getAmountRange(totalStake?.amount), }) - router.push('/leaderboard', undefined, { shallow: true }) + router.push('/c/leaderboard', undefined, { shallow: true }) } else if (key === 'stats') { sendEvent('leaderboard_activity_opened', { eventSource: 'leaderboard_tab', @@ -48,7 +48,12 @@ export default function LeaderboardTabs({ {myAddress && ( + My Staking Stats } @@ -57,7 +62,7 @@ export default function LeaderboardTabs({ )} + Global Staking Stats } @@ -65,14 +70,14 @@ export default function LeaderboardTabs({ /> + {config.appName} Stats } key='stats' /> - { @@ -108,7 +113,7 @@ export default function LeaderboardTabs({ } key='stats' /> - + */} ) } diff --git a/src/layout/SideMenuItems.tsx b/src/layout/SideMenuItems.tsx index a1f6c6d1f..4ed43177f 100644 --- a/src/layout/SideMenuItems.tsx +++ b/src/layout/SideMenuItems.tsx @@ -70,7 +70,8 @@ export const buildAuthorizedMenu = (myAddress?: string): MenuItem[] => { { name: 'Leaderboard', icon: , - href: '/leaderboard', + href: myAddress ? `/c/leaderboard/${myAddress}` : '/c/leaderboard', + forceHardNavigation: true, }, { name: 'Statistics',