Fork of the excellent esp8266-react - https://github.com/rjwats/esp8266-react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
835 B

  1. import React from 'react';
  2. import CircularProgress from '@material-ui/core/CircularProgress';
  3. import { Typography, Theme } from '@material-ui/core';
  4. import { makeStyles, createStyles } from '@material-ui/styles';
  5. const useStyles = makeStyles((theme: Theme) => createStyles({
  6. fullScreenLoading: {
  7. padding: theme.spacing(2),
  8. display: "flex",
  9. alignItems: "center",
  10. justifyContent: "center",
  11. height: "100vh",
  12. flexDirection: "column"
  13. },
  14. progress: {
  15. margin: theme.spacing(4),
  16. }
  17. }));
  18. const FullScreenLoading = () => {
  19. const classes = useStyles();
  20. return (
  21. <div className={classes.fullScreenLoading}>
  22. <CircularProgress className={classes.progress} size={100} />
  23. <Typography variant="h4">
  24. Loading &hellip;
  25. </Typography>
  26. </div>
  27. )
  28. }
  29. export default FullScreenLoading;