nation 버전 이식
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user