diff --git a/react/src/components/MainLayout/MainLayout.tsx b/react/src/components/MainLayout/MainLayout.tsx index ec3958f2a..fbc9ab9eb 100644 --- a/react/src/components/MainLayout/MainLayout.tsx +++ b/react/src/components/MainLayout/MainLayout.tsx @@ -11,7 +11,7 @@ import PasswordChangeRequestAlert from '../PasswordChangeRequestAlert'; import { DRAWER_WIDTH } from '../WEBUINotificationDrawer'; import WebUIHeader from './WebUIHeader'; import WebUISider from './WebUISider'; -import { App, Layout, Space, theme } from 'antd'; +import { App, Button, Layout, Space, theme } from 'antd'; import { atom, useSetAtom } from 'jotai'; import { Suspense, useEffect, useLayoutEffect, useRef, useState } from 'react'; import { useNavigate, Outlet } from 'react-router-dom'; @@ -132,6 +132,25 @@ function MainLayout() { backgroundColor: 'transparent', }} > + + + + } + > + { + if (broken) { + setSideCollapsed(true); + } else { + !compactSidebarActive && setSideCollapsed(false); + } + }} + webuiplugins={webUIPlugins} + /> + - - - - } + - { - if (broken) { - setSideCollapsed(true); - } else { - !compactSidebarActive && setSideCollapsed(false); - } - }} - webuiplugins={webUIPlugins} - /> - + + {/* @ts-ignore */} + + + {/* */} {/* TODO: Breadcrumb */} @@ -210,10 +220,6 @@ function MainLayout() { - - {/* @ts-ignore */} - -