mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 15:18:48 +00:00
do injectfirst around app
This commit is contained in:
parent
162f3546ab
commit
bc2124638f
3 changed files with 2 additions and 5 deletions
|
@ -28,7 +28,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) => (
|
||||
|
@ -51,7 +50,6 @@ function Header() {
|
|||
</ListItem>
|
||||
</List>
|
||||
</Box>
|
||||
</StyledEngineProvider>
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
.drawer-list {
|
||||
background-color: #2f325e;
|
||||
min-height: 100vh;
|
||||
min-width: 13rem;
|
||||
}
|
||||
|
||||
.drawer-list-item {
|
||||
|
|
|
@ -10,11 +10,9 @@ const root = ReactDOM.createRoot(
|
|||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<StyledEngineProvider injectFirst>
|
||||
<StyledEngineProvider injectFirst>
|
||||
<App />
|
||||
</StyledEngineProvider>
|
||||
</StyledEngineProvider>
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue