-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change pages structure to avoid dashboard menu refresh
- Loading branch information
Showing
8 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import React from "react"; | ||
|
||
export default function JobMonitorLayout({ | ||
children, | ||
}: { | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client"; | ||
import * as React from "react"; | ||
import CssBaseline from "@mui/material/CssBaseline"; | ||
import { Box } from "@mui/material"; | ||
import { useMUITheme } from "@/hooks/theme"; | ||
import { ThemeProvider as MUIThemeProvider } from "@mui/material/styles"; | ||
import Dashboard from "@/components/layout/Dashboard"; | ||
|
||
export default function JobMonitorLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
const theme = useMUITheme(); | ||
|
||
return ( | ||
<section> | ||
<Dashboard> | ||
<MUIThemeProvider theme={theme}> | ||
<CssBaseline /> | ||
<Box | ||
sx={{ | ||
ml: "5%", | ||
mr: "5%", | ||
}} | ||
> | ||
{children} | ||
</Box> | ||
</MUIThemeProvider> | ||
</Dashboard> | ||
</section> | ||
); | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters