update LayoutMenu , LayoutSidebar components

This commit is contained in:
2025-10-15 19:42:01 +07:00
parent 7b56f9690d
commit aa68c6690e
3 changed files with 22 additions and 24 deletions

View File

@@ -1,21 +1,26 @@
import React from 'react';
import { Layout, theme } from 'antd';
import React, { useState, useEffect } from 'react';
import { Layout, theme, Grid } from 'antd';
import LayoutFooter from './LayoutFooter';
import LayoutHeader from './LayoutHeader';
import LayoutSidebar from './LayoutSidebar';
const { Content } = Layout;
const { useBreakpoint } = Grid;
const MainLayout = ({ children }) => {
const {
token: { colorBgContainer, borderRadiusLG },
} = theme.useToken();
const screens = useBreakpoint();
const isDesktop = screens.lg;
return (
<Layout style={{ height: '100vh' }}>
<LayoutSidebar />
<Layout
style={{
marginLeft: isDesktop ? '300px' : '0',
overflow: 'auto',
}}
>