feat(frontend): added in proper links for settings and servers to the sidebar
This commit is contained in:
@@ -15,7 +15,7 @@ import {Collapsible, CollapsibleContent, CollapsibleTrigger} from "../../ui/coll
|
|||||||
const items = [
|
const items = [
|
||||||
{
|
{
|
||||||
title: "Servers",
|
title: "Servers",
|
||||||
url: "#",
|
url: "/servers",
|
||||||
icon: Server,
|
icon: Server,
|
||||||
isActive: false,
|
isActive: false,
|
||||||
},
|
},
|
||||||
@@ -31,13 +31,19 @@ const data = {
|
|||||||
title: "Settings",
|
title: "Settings",
|
||||||
url: "/settings",
|
url: "/settings",
|
||||||
icon: Settings,
|
icon: Settings,
|
||||||
|
isActive: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Modules",
|
||||||
|
url: "/modules",
|
||||||
|
icon: Settings,
|
||||||
isActive: false,
|
isActive: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Swagger",
|
title: "Swagger",
|
||||||
url: "#",
|
url: "#",
|
||||||
icon: Webhook,
|
icon: Webhook,
|
||||||
isActive: false,
|
isActive: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Logs",
|
title: "Logs",
|
||||||
@@ -91,12 +97,17 @@ export function AdminSideBar() {
|
|||||||
<SidebarMenuSub>
|
<SidebarMenuSub>
|
||||||
{item.items.map((item) => (
|
{item.items.map((item) => (
|
||||||
<SidebarMenuSubItem key={item.title}>
|
<SidebarMenuSubItem key={item.title}>
|
||||||
<SidebarMenuSubButton asChild isActive={item.isActive}>
|
{item.isActive && (
|
||||||
<a href={item.url} target={item.newWindow ? "_blank" : "_self"}>
|
<SidebarMenuSubButton asChild>
|
||||||
<item.icon />
|
<a
|
||||||
<span>{item.title}</span>
|
href={item.url}
|
||||||
</a>
|
target={item.newWindow ? "_blank" : "_self"}
|
||||||
</SidebarMenuSubButton>
|
>
|
||||||
|
<item.icon />
|
||||||
|
<span>{item.title}</span>
|
||||||
|
</a>
|
||||||
|
</SidebarMenuSubButton>
|
||||||
|
)}
|
||||||
</SidebarMenuSubItem>
|
</SidebarMenuSubItem>
|
||||||
))}
|
))}
|
||||||
</SidebarMenuSub>
|
</SidebarMenuSub>
|
||||||
|
|||||||
Reference in New Issue
Block a user