From 998c8baa47237764f0c49850dbc0b2287f66da07 Mon Sep 17 00:00:00 2001 From: Om Mishra <32200996+mishraomp@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:10:30 -0700 Subject: [PATCH] chore: header pin changes (#57) --- frontend/src/App.tsx | 67 ++++++++------ .../src/components/AuthorizationDetails.tsx | 10 +-- frontend/src/components/Dashboard.tsx | 2 +- frontend/src/components/Header.tsx | 88 +++++++++++++++---- 4 files changed, 117 insertions(+), 50 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 7917e0c1..f8505c80 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -8,8 +8,8 @@ import { fetchOMRRData } from '@/features/omrr/omrr-slice' import { useEffect } from 'react' import { RootState } from '@/app/store' import CircularProgress from '@mui/material/CircularProgress' -import Snackbar from '@mui/material/Snackbar' import 'leaflet/dist/leaflet.css' +import { Snackbar } from '@mui/material' export default function App() { const status: string = useSelector((state: RootState) => state.omrr.status) @@ -20,31 +20,48 @@ export default function App() { }, [dispatch]) return ( - -
- - - {status === 'loading' ? ( - - ) : status === 'failed' ? ( - - ) : ( - + {status === 'loading' ? ( + <> +
+ + + + + +