Updated the App.jsx
This commit is contained in:
parent
8a9b7af03a
commit
130f53ac18
17
src/App.jsx
17
src/App.jsx
@ -1,15 +1,12 @@
|
|||||||
import { LinearProgress, Stack, useTheme} from "@mui/material";
|
import {UserProvider} from "@contexts/User";
|
||||||
import LightLogo from "@/common/assets/images/logo/light.webp";
|
import {InfoProvider} from "@contexts/Info";
|
||||||
import DarkLogo from "@/common/assets/images/logo/dark.webp";
|
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const theme = useTheme();
|
|
||||||
const logo = theme.palette.mode === "dark" ? DarkLogo : LightLogo;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack sx={{height: "100vh"}} justifyContent="center" alignItems="center" gap={5}>
|
<InfoProvider>
|
||||||
<img src={logo} alt="Logo" style={{width: "25rem"}}/>
|
<UserProvider>
|
||||||
<LinearProgress variant="indeterminate" sx={{width: "20rem"}}/>
|
<h2>Logged in</h2>
|
||||||
</Stack>
|
</UserProvider>
|
||||||
|
</InfoProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user