MSP-3074 add layout
This commit is contained in:
1 parent
5f73d33a58
commit
92fcb4a352
7 files changed
+86
-34
No files matched your search
@@ -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;
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user