Commit b0cda74d authored by Max Alekseenko's avatar Max Alekseenko

remove balance from nav link

parent 6fa230b1
...@@ -26,7 +26,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => { ...@@ -26,7 +26,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => {
const isMobile = useIsMobile(); const isMobile = useIsMobile();
const colors = useColors(); const colors = useColors();
const router = useRouter(); const router = useRouter();
const { openLoginModal, balancesQuery, dailyRewardQuery, apiToken, isInitialized } = useRewardsContext(); const { openLoginModal, dailyRewardQuery, apiToken, isInitialized } = useRewardsContext();
const pathname = '/account/rewards'; const pathname = '/account/rewards';
const nextRoute = { pathname } as Route; const nextRoute = { pathname } as Route;
...@@ -79,9 +79,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => { ...@@ -79,9 +79,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => {
<HStack spacing={ 0 } overflow="hidden"> <HStack spacing={ 0 } overflow="hidden">
<NavLinkIcon item={{ icon: dailyRewardQuery.data?.available ? 'merits_with_dot_slim' : 'merits_slim' } as NavItem}/> <NavLinkIcon item={{ icon: dailyRewardQuery.data?.available ? 'merits_with_dot_slim' : 'merits_slim' } as NavItem}/>
<Text { ...styleProps.textProps } as="span" ml={ 3 }> <Text { ...styleProps.textProps } as="span" ml={ 3 }>
<span> Merits
{ balancesQuery.data?.total ? `${ balancesQuery.data?.total } Merits` : 'Merits' }
</span>
</Text> </Text>
{ isHighlighted && ( { isHighlighted && (
<LightningLabel iconColor={ styleProps.itemProps.bgColor } isCollapsed={ isCollapsed }/> <LightningLabel iconColor={ styleProps.itemProps.bgColor } isCollapsed={ isCollapsed }/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment