do injectfirst around app

This commit is contained in:
Niklas 2025-06-26 10:49:27 +02:00 committed by BlankAccountsUsername
parent f664f50772
commit 82ca946e89
3 changed files with 8 additions and 6 deletions

View file

@ -31,7 +31,6 @@ function Header() {
const routerLinksList = ["/","/createpost","/profile","/about","/"]
const DrawerList = (
<StyledEngineProvider injectFirst>
<Box role="menu" onClick={() => setIsOpen(false)}>
<List className="drawer-list">
{["Feed", "Create Post", "Profile", "About Us"].map((text, index) => (
@ -54,7 +53,6 @@ function Header() {
</ListItem>
</List>
</Box>
</StyledEngineProvider>
);
return (

View file

@ -56,6 +56,7 @@
.drawer-list {
background-color: #2f325e;
min-height: 100vh;
min-width: 13rem;
}
.drawer-list-item {

View file

@ -3,13 +3,16 @@ import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { StyledEngineProvider } from "@mui/material";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<StyledEngineProvider injectFirst>
<App />
</StyledEngineProvider>
</React.StrictMode>
);