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