fix: add navigation subitems
This commit is contained in:
@@ -13,9 +13,20 @@ export default function Sidebar({ menuItems }: SidebarProps) {
|
||||
</Link> */}
|
||||
{/* Base styles.active on menuItem href and current path */}
|
||||
{menuItems.map((item) => (
|
||||
<Link key={item.uid} className={styles.link} href="#">
|
||||
{item.linkText || item.title}
|
||||
</Link>
|
||||
<>
|
||||
<Link key={item.uid} className={styles.link} href="#">
|
||||
{item.linkText || item.title}
|
||||
</Link>
|
||||
{item.subItems
|
||||
? item.subItems.map((subItem) => {
|
||||
return (
|
||||
<Link key={subItem.uid} className={styles.link} href="#">
|
||||
{subItem.linkText || subItem.title}
|
||||
</Link>
|
||||
)
|
||||
})
|
||||
: null}
|
||||
</>
|
||||
))}
|
||||
|
||||
<Link className={styles.link} href="/api/auth/signout">
|
||||
|
||||
Reference in New Issue
Block a user