fix overview link

This commit is contained in:
saml33 2024-03-15 00:20:40 +11:00
parent 3a1eb13291
commit 47f8bd0fe3
2 changed files with 5 additions and 3 deletions

View File

@ -224,13 +224,13 @@ const SideNav = ({ collapsed }: { collapsed: boolean }) => {
<MenuItem
active={
pathname === '/' &&
!query?.view &&
activeAccountTab === 'overview'
((!!query?.view && query.view.includes('overview')) ||
(activeAccountTab === 'overview' && !query?.view))
}
collapsed={false}
icon={<Squares2X2Icon className="h-4 w-4" />}
title={t('overview')}
pagePath="/"
pagePath="/?view=overview"
hideIconBg
showTooltip={false}
/>

View File

@ -67,6 +67,8 @@ const AccountView = ({ view }: { view: ViewToShow }) => {
return <AccountStats hideView={handleHideChart} />
case 'health-contributions':
return <HealthContributions hideView={handleHideChart} />
case 'overview':
return <AccountTabs view="overview" />
case 'balances':
return <AccountTabs view="balances" />
case 'positions':