feat: enhance sidebar navigation with localStorage state management and section key support

This commit is contained in:
mlogclub
2026-05-30 20:06:34 +08:00
parent 6594140684
commit edb8355aad
4 changed files with 62 additions and 3 deletions
+1
View File
@@ -66,6 +66,7 @@ export function AppSidebar({ ...props }: ComponentProps<typeof Sidebar>) {
<NavMain
key={section.titleKey}
icon={section.icon}
sectionKey={section.titleKey}
title={t(section.titleKey)}
items={section.items.map((item) => ({
...item,