Skip to content

Commit f4e9410

Browse files
committed
refactor: improve sidebar nav
1 parent 7801ae0 commit f4e9410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/AppSidebarNav.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ export const AppSidebarNav = ({ items }) => {
4343
)
4444
}
4545
const navGroup = (item, index) => {
46-
const { component, name, icon, to, ...rest } = item
46+
const { component, name, icon, items, to, ...rest } = item
4747
const Component = component
4848
return (
4949
<Component
50+
compact
5051
idx={String(index)}
5152
key={index}
5253
toggler={navLink(name, icon)}

0 commit comments

Comments
 (0)