refactor: migrate HomeLayout from CSS to MUI sx styling

This commit is contained in:
gorkem-bwl committed 2026-01-17 14:22:07 -05:00
1 parent 478e9671d4
commit 9d44e11496
2 files changed
+25 -41

No files matched your search

@@ -1,19 +1,40 @@
import Sidebar from "../../Sidebar/index.jsx";
import { Outlet } from "react-router";
import { Stack } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import { UserGuideSidebar } from "../../UserGuide";
import "./index.css";
const HomeLayout = () => {
const theme = useTheme();
return (
<Stack
className="home-layout"
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 className="home-content-wrapper">
<Stack
sx={{
padding: theme.spacing(4),
maxWidth: 1400,
margin: "0 auto",
flex: 1,
minWidth: 0,
overflowX: "hidden",
}}
>
<Outlet />
</Stack>
<UserGuideSidebar />