Fixed background color not changing on theme swap

This commit is contained in:
Daniel Cojocea committed 2024-09-06 16:32:38 -04:00
1 parent 0598a08f34
commit 79ba916a44
9 files changed
+71 -43

No files matched your search

-4
View File
@@ -1,7 +1,3 @@
#root:has(.home-layout) {
background-color: var(--secondary-bg);
}
.home-layout {
position: relative;
min-height: 100vh;
+5 -14
View File
@@ -1,24 +1,15 @@
import Sidebar from "../../Components/Sidebar";
import { Outlet } from "react-router";
import { Box, Stack } from "@mui/material";
import { useTheme } from "@emotion/react";
import { Stack } from "@mui/material";
import "./index.css";
const HomeLayout = () => {
const theme = useTheme();
return (
<Box backgroundColor={theme.palette.background.alt}>
<Stack
className="home-layout"
flexDirection="row"
gap={theme.spacing(14)}
>
<Sidebar />
<Outlet />
</Stack>
</Box>
<Stack className="home-layout" flexDirection="row" gap={14}>
<Sidebar />
<Outlet />
</Stack>
);
};