apdate
This commit is contained in:
@@ -2,7 +2,8 @@ import { CustomProps, ViewerGroup } from "./explorer.ts";
|
||||
import { User } from "./user.ts";
|
||||
|
||||
export interface CustomNavItem {
|
||||
title: string;
|
||||
title?: string;
|
||||
name?: string;
|
||||
icon?: string;
|
||||
url: string;
|
||||
target?: string;
|
||||
|
||||
@@ -299,9 +299,9 @@ const PageNavigation = () => {
|
||||
<Box>
|
||||
{customNavItems.map((item) => (
|
||||
<SideNavItemComponent
|
||||
key={item.title}
|
||||
key={item.title || item.name || Math.random().toString(36)}
|
||||
item={{
|
||||
label: item.title,
|
||||
label: item.title || item.name || "",
|
||||
iconifyName: item.icon,
|
||||
path: item.url,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user