This commit is contained in:
2025-10-24 21:01:37 +08:00
parent f1c5f86553
commit 2f4930b39a
2 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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,
}} }}