From fd8ec0099e07e70ba29a6d956cca8acb257a145f Mon Sep 17 00:00:00 2001 From: Nathan Hayfield Date: Fri, 18 Feb 2022 18:39:44 +0100 Subject: [PATCH] Style update for User Info Endpoint (#3055) * style changes from mui 5 * fix spacing issue on small screen * remove unneeded import * add default exports * make linter happy * more style changes * use startCase from lodash Co-authored-by: Caleb Doxsey --- ui/src/App.tsx | 28 ++-- ui/src/components/Avatar.tsx | 20 +++ ui/src/components/ClaimsTable.tsx | 57 -------- ui/src/components/DeviceEnrolledPage.tsx | 2 +- ui/src/components/ErrorPage.tsx | 2 +- ui/src/components/Footer.tsx | 46 ++++--- ui/src/components/FooterLink.tsx | 10 ++ ui/src/components/Header.tsx | 130 +++++++++++++++--- ui/src/components/Section.tsx | 4 +- ui/src/components/SessionDetails.tsx | 32 +++-- ui/src/components/ToolbarOffset.tsx | 6 + ui/src/components/UserClaims.tsx | 17 --- ui/src/components/UserInfoPage.tsx | 95 +++++++------ ui/src/components/UserSidebarContent.tsx | 55 ++++++++ .../components/WebAuthnRegistrationPage.tsx | 79 +++++------ ui/src/context/Subpage.tsx | 31 +++++ 16 files changed, 400 insertions(+), 214 deletions(-) create mode 100644 ui/src/components/Avatar.tsx delete mode 100644 ui/src/components/ClaimsTable.tsx create mode 100644 ui/src/components/FooterLink.tsx create mode 100644 ui/src/components/ToolbarOffset.tsx delete mode 100644 ui/src/components/UserClaims.tsx create mode 100644 ui/src/components/UserSidebarContent.tsx create mode 100644 ui/src/context/Subpage.tsx diff --git a/ui/src/App.tsx b/ui/src/App.tsx index f0230eee1..5cce3b31d 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -6,11 +6,12 @@ import UserInfoPage from "./components/UserInfoPage"; import WebAuthnRegistrationPage from "./components/WebAuthnRegistrationPage"; import { createTheme } from "./theme"; import { PageData } from "./types"; -import Container from "@mui/material/Container"; import CssBaseline from "@mui/material/CssBaseline"; -import Stack from "@mui/material/Stack"; import { ThemeProvider } from "@mui/material/styles"; import React, { FC } from "react"; +import {ToolbarOffset} from "./components/ToolbarOffset"; +import Box from "@mui/material/Box"; +import {SubpageContextProvider} from "./context/Subpage"; const theme = createTheme(); @@ -34,13 +35,22 @@ const App: FC = () => { return ( - - -
- {body} -