fix overview link
This commit is contained in:
parent
3a1eb13291
commit
47f8bd0fe3
|
@ -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}
|
||||
/>
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue