fix: sidebar
This commit is contained in:
parent
5d1309633d
commit
b60a97c73f
|
|
@ -84,7 +84,7 @@ export const DocsSidebar = ({ currentPath }: DocsSidebarProps) => {
|
|||
const normalizePath = (path: string) => (path.length > 1 && path.endsWith('/') ? path.slice(0, -1) : path);
|
||||
const normalizedCurrentPath = normalizePath(currentPath);
|
||||
|
||||
const isActive = (href: string) => normalizedCurrentPath === href;
|
||||
const isActive = (href: string) => normalizedCurrentPath === normalizePath(href);
|
||||
const isExpanded = (label: string) => expandedSections.includes(label);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue