From 88709c6218984932308b47660137a195df8dfc59 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Thu, 13 Jun 2024 20:05:52 +0200 Subject: [PATCH] feat: Sidebar optional mods section --- desktop/src/ui/components/Sidebar.tsx | 33 +++++++++++--------- desktop/src/ui/pages/cluster/ClusterRoot.tsx | 12 +++++-- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/desktop/src/ui/components/Sidebar.tsx b/desktop/src/ui/components/Sidebar.tsx index bfe1ad76..20db6870 100644 --- a/desktop/src/ui/components/Sidebar.tsx +++ b/desktop/src/ui/components/Sidebar.tsx @@ -8,7 +8,7 @@ type SidebarProps = ParentProps & { }; base: string; links: { - [key: string]: [JSX.Element, string, string][]; + [key: string]: ([JSX.Element, string, string] | undefined)[]; }; }; @@ -44,19 +44,24 @@ function Sidebar(props: SidebarProps) {