mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
33 lines
846 B
TypeScript
33 lines
846 B
TypeScript
import React from 'react';
|
|
import CircularProgress from '@material-ui/core/CircularProgress';
|
|
import { Typography, Theme } from '@material-ui/core';
|
|
import { makeStyles, createStyles } from '@material-ui/styles';
|
|
|
|
const useStyles = makeStyles((theme: Theme) =>
|
|
createStyles({
|
|
fullScreenLoading: {
|
|
padding: theme.spacing(2),
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
height: '100vh',
|
|
flexDirection: 'column'
|
|
},
|
|
progress: {
|
|
margin: theme.spacing(4)
|
|
}
|
|
})
|
|
);
|
|
|
|
const FullScreenLoading = () => {
|
|
const classes = useStyles();
|
|
return (
|
|
<div className={classes.fullScreenLoading}>
|
|
<CircularProgress className={classes.progress} size={100} />
|
|
<Typography variant="h4">Loading…</Typography>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default FullScreenLoading;
|