From 20790168f60b0a61501731d0b439d268209515d6 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 4 Oct 2023 17:51:07 +0200 Subject: [PATCH] added buttom links to sidebar --- src/Components/AppShell/SideBar.tsx | 205 +++++++++------------------- 1 file changed, 63 insertions(+), 142 deletions(-) diff --git a/src/Components/AppShell/SideBar.tsx b/src/Components/AppShell/SideBar.tsx index e79bf894..fe1f3662 100644 --- a/src/Components/AppShell/SideBar.tsx +++ b/src/Components/AppShell/SideBar.tsx @@ -17,7 +17,7 @@ type route = { } -export function SideBar({routes} : {routes : route[]}) { +export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoutes?: route[] }) { // prevent react18 from calling useEffect twice const init = useRef(false) @@ -58,151 +58,72 @@ export function SideBar({routes} : {routes : route[]}) { data-te-sidenav-slim="true" data-te-sidenav-content="#app-content" data-te-sidenav-slim-collapsed="true" - data-te-sidenav-slim-width ="56" - data-te-sidenav-width ="160"> -
- -
- - toggleSlim()}/> -
+ toggleSlim()} /> + +
+ )