nation 버전 이식

This commit is contained in:
Macbook
2026-07-12 15:55:08 +09:00
parent 314a3554d3
commit 07a8114927
54 changed files with 11612 additions and 203 deletions
+3 -3
View File
@@ -75,7 +75,7 @@ export default function AgentShell({ shop = false }: Props) {
() => (shop ? allSections : filterMenuSections(allSections, allowedMenus)),
[shop, allSections, allowedMenus],
)
const selectedKey = resolveSelectedKey(location.pathname)
const selectedKey = resolveSelectedKey(location.pathname, location.search)
const [openCards, setOpenCards] = useState<Record<string, boolean>>({})
@@ -91,7 +91,7 @@ export default function AgentShell({ shop = false }: Props) {
})
return next
})
}, [location.pathname, sections])
}, [location.pathname, location.search, sections])
useEffect(() => {
localStorage.setItem('lp.width', String(panelWidth))
@@ -220,7 +220,7 @@ export default function AgentShell({ shop = false }: Props) {
key={it.key}
to={it.key}
title={it.label}
className={({ isActive }) => (isActive || selectedKey === it.key ? 'active' : undefined)}
className={() => (selectedKey === it.key ? 'active' : undefined)}
>
{it.label}
</NavLink>