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";
export interface CustomNavItem {
title: string;
title?: string;
name?: string;
icon?: string;
url: string;
target?: string;

View File

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