style: reformat navigation.ts with repo prettier config (#1899 #1900)

This commit is contained in:
2026-09-14 21:37:18 +08:00
parent ac606fcf1e
commit a74f586564
+10 -10
View File
@@ -2,7 +2,7 @@
* 统一导航配置
* Header.tsx 和 Sidebar.tsx 共享此数据源,避免路由配置重复
*/
import React from "react";
import React from "react"
import {
DashboardOutlined,
FileOutlined,
@@ -17,20 +17,20 @@ import {
CrownOutlined,
UnorderedListOutlined,
UserOutlined,
} from "@ant-design/icons";
} from "@ant-design/icons"
/** 导航项类型 */
export interface NavItem {
key: string;
label: string;
path: string;
icon: React.ReactNode;
key: string
label: string
path: string
icon: React.ReactNode
}
/** 导航分组类型 */
export interface NavGroup {
title: string;
items: NavItem[];
title: string
items: NavItem[]
}
/**
@@ -105,7 +105,7 @@ export const NAV_ITEMS: NavItem[] = [
path: "/app/tasks",
icon: React.createElement(UnorderedListOutlined),
},
];
]
/** 侧边栏导航分组(Sidebar 分组列表使用) */
export const NAV_GROUPS: NavGroup[] = [
@@ -202,4 +202,4 @@ export const NAV_GROUPS: NavGroup[] = [
},
],
},
];
]