mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
806bebd209
commit
589c567c90
@ -34,6 +34,7 @@ export const ENDPOINTS = [
|
||||
path: PATH.DASHBOARD,
|
||||
sidebar: true,
|
||||
icon: DashboardIcon,
|
||||
position: 1,
|
||||
Component: Dashboard
|
||||
},
|
||||
{
|
||||
@ -41,6 +42,7 @@ export const ENDPOINTS = [
|
||||
path: PATH.SETTINGS,
|
||||
sidebar: true,
|
||||
icon: SettingsIcon,
|
||||
position: -1,
|
||||
Component: Settings
|
||||
}
|
||||
]
|
||||
|
@ -46,6 +46,7 @@ const Sidebar = ({ endpoints }) => {
|
||||
const SidebarEndpoints = useMemo(
|
||||
() => endpoints
|
||||
?.filter(({ sidebar = false }) => sidebar)
|
||||
?.sort(({ position: posA = 1 }, { position: posB = 1 }) => posB - posA)
|
||||
?.map((endpoint, index) =>
|
||||
endpoint.routes ? (
|
||||
<SidebarCollapseItem key={`item-${index}`} {...endpoint} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user