This commit is contained in:
2025-12-09 22:37:17 +03:00
parent 894320bd80
commit 3343e81133
4 changed files with 31 additions and 20 deletions

View File

@@ -10,10 +10,10 @@ const App = () => {
const { isStylesheetLoaded } = useToggleStyle();
const { pathname } = useLocation();
const {
settingsPanelConfig: { showSettingPanelButton },
setSettingsPanelConfig
} = useSettingsPanelContext();
// const {
// settingsPanelConfig: { showSettingPanelButton },
// setSettingsPanelConfig
// } = useSettingsPanelContext();
const {
config: { theme, isRTL }
@@ -24,11 +24,11 @@ const App = () => {
window.scrollTo(0, 0);
}, [pathname]);
useEffect(() => {
setSettingsPanelConfig({
openSettingPanel: false
});
}, [isRTL]);
// useEffect(() => {
// setSettingsPanelConfig({
// openSettingPanel: false
// });
// }, [isRTL]);
return (
<>
@@ -46,12 +46,12 @@ const App = () => {
) : (
<>
<Outlet />
{showSettingPanelButton && (
<>
<SettingsToggle />
<SettingsPanel />
</>
)}
{/*{showSettingPanelButton && (*/}
{/* <>*/}
{/* <SettingsToggle />*/}
{/* <SettingsPanel />*/}
{/* </>*/}
{/*)}*/}
</>
)}
</>

View File

@@ -230,8 +230,16 @@ const routes: RouteObject[] = [
element: <div> body </div>
},
{
element: <div>Channels</div>,
path: '/channels'
element: <div>monitor</div>,
path: '/monitor'
},
{
element: <div>log</div>,
path: '/log'
},
{
element: <div>Net</div>,
path: '/Network'
},
{
path: '/dashboard',

View File

@@ -30,10 +30,11 @@ const MainLayout = () => {
{navbarPosition === 'dual' && <NavbarDual />} */}
<div className={classNames(contentClass, 'content')}>
<Outlet />
<NavBarMy />
<Footer className={classNames(footerClass, 'position-absolute')} />
<ChatWidget />
</div>
</Container>
);

View File

@@ -5,8 +5,10 @@ type NavItemPage = {
path: string
}
const pages: NavItemPage[] = [
{ label: 'Главная', path: '/' },
{ label: 'Каналы', path: '/channels' }
{ label: 'управление', path: '/' },
{ label: 'Монмторинг', path: '/monitor' },
{ label: 'Журнал', path: '/log'},
{ label: 'Сеть', path: '/Network'}
]
const NavbarTopNav = () => {
return (