MSP-3074 add layout

This commit is contained in:
Anastasiia committed 2024-03-26 17:30:57 +03:00
1 parent 5f73d33a58
commit 92fcb4a352
7 files changed
+86 -34

No files matched your search

+5 -2
View File
@@ -1,7 +1,10 @@
import Main from "../../components/Main/Main.tsx";
import Layout from '../Layout/Layout.tsx';
function HomePages() {
return <Layout />;
return (
<>
<Main/>
</>);
}
export default HomePages;
+9 -18
View File
@@ -1,22 +1,13 @@
import { App, Button } from 'antd';
import { useTheme } from 'antd-style';
import { Outlet } from 'react-router-dom';
import Header from "../../components/Header/Header.tsx";
const Layout= () => {
const theme = useTheme();
function Layout() {
return (
<App>
<div style={{
background: theme.colorBgLayout,
minHeight: '100vh'
}}>
<Button ghost type={'primary'}>
Border
</Button>
<Button type={'primary'}>Primary</Button>
<div style={{minHeight: 'calc(100vh - 96px)'}}>
<Header/>
<Outlet/>
</div>
</App>
);
};
export default Layout;
}
export default Layout;