-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: fix New Model page layout * style: 🎨 use mui for admin page --------- Co-authored-by: Pauline Didier <[email protected]> Co-authored-by: Joakim Uddholm <[email protected]>
- Loading branch information
1 parent
138e795
commit b0f67fd
Showing
18 changed files
with
532 additions
and
563 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import React from "react"; | ||
import { useIsFramed } from "../../hooks/useIsFramed"; | ||
import Grid from "@mui/material/Grid2"; | ||
|
||
export function CenteredPage({ children }) { | ||
const isFramed = useIsFramed(); | ||
export function CenteredPage({ children, marginTop = true }) { | ||
return ( | ||
<Grid | ||
container | ||
spacing={0} | ||
columns={12} | ||
spacing={2} | ||
direction="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
marginTop={marginTop ? "20px" : ""} | ||
marginX={"auto"} | ||
maxWidth={"80%"} | ||
> | ||
<Grid width={"80%"} marginTop={isFramed ? "" : "84px"}> | ||
{children} | ||
</Grid> | ||
{children} | ||
</Grid> | ||
); | ||
} |
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
Oops, something went wrong.