Files
Checkmate/client/src/Components/v1/Layouts/HomeLayout/index.jsx
T

46 lines
921 B
React
Raw Normal View History

2025-09-27 14:54:55 -07:00
import Sidebar from "../../Sidebar/index.jsx";
2024-06-06 13:10:13 -07:00
import { Outlet } from "react-router";
import { Stack } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import { UserGuideSidebar, TAB_BAR_WIDTH } from "../../UserGuide";
2024-07-26 12:39:18 -04:00
2024-05-06 12:29:36 -04:00
const HomeLayout = () => {
const theme = useTheme();
return (
<Stack
flexDirection="row"
gap={14}
sx={{
position: "relative",
minHeight: "100vh",
margin: "0 auto",
padding: 0,
overflowX: "hidden",
width: "100%",
"& > div": {
minHeight: `calc(100vh - ${theme.spacing(4)} * 2)`,
flex: 1,
},
}}
>
<Sidebar />
<Stack
sx={{
padding: theme.spacing(4),
paddingRight: `${TAB_BAR_WIDTH + 16}px`,
maxWidth: 1400,
margin: "0 auto",
flex: 1,
minWidth: 0,
overflowX: "hidden",
}}
>
<Outlet />
</Stack>
2026-01-17 10:49:16 -05:00
<UserGuideSidebar />
</Stack>
);
2024-06-06 13:10:13 -07:00
};
2024-05-06 12:29:36 -04:00
export default HomeLayout;