-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web-ui): use same theme for loading screen (#921)
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
23 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
20 changes: 4 additions & 16 deletions
20
services/web-ui/src/pages/ProfileGuard/ProfileGuard.nav.tsx
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,25 +1,13 @@ | ||
import React from "react"; | ||
import { ReactNode } from "react"; | ||
|
||
import { Box, Container, Toolbar } from "@mui/material"; | ||
|
||
import { AppBar } from "src/components/nav/AppBar"; | ||
import { Box } from "@mui/material"; | ||
|
||
interface ProfileGuardNavProps { | ||
children: React.ReactNode; | ||
children: ReactNode; | ||
} | ||
|
||
export function ProfileGuardNav({ | ||
children, | ||
}: ProfileGuardNavProps): React.ReactElement { | ||
return ( | ||
<Box sx={{ display: "flex", height: "100vh" }}> | ||
<AppBar /> | ||
<Box component="main" sx={{ flexGrow: 1, p: 3, pt: 1, height: "100%" }}> | ||
<Toolbar /> | ||
<Container maxWidth="md" sx={{ height: "100%" }}> | ||
{children} | ||
</Container> | ||
</Box> | ||
</Box> | ||
); | ||
return <Box sx={{ height: "100vh" }}>{children}</Box>; | ||
} |