feat: enhance navigation state handling for history overview
Deploy Development / deploy (push) Successful in 59s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 16s

- Updated NavLink components in App and DesktopSidebar to conditionally pass state for the '/history' route, improving user experience by maintaining the selected tab on navigation.
This commit is contained in:
Lars committed 2026-04-21 08:19:34 +02:00
1 parent 1c512b0d0a
commit 3eb7ef3ae6
2 files changed
+2

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ function Nav({ isAdmin }) {
<NavLink
key={item.to}
to={item.to}
state={item.to === '/history' ? { tab: 'overview' } : undefined}
end={!!item.end}
className={({ isActive }) =>
'nav-item' +
@@ -35,6 +35,7 @@ export default function DesktopSidebar({
<NavLink
key={item.to}
to={item.to}
state={item.to === '/history' ? { tab: 'overview' } : undefined}
end={!!item.end}
className={({ isActive }) =>
'desktop-sidebar__link' +