ResultadosDigitais/matrix

View on GitHub
frontend/src/components/Loading.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import CircularProgress from "@material-ui/core/CircularProgress";
import Typography from "@material-ui/core/Typography";

const useStyles = makeStyles(theme => ({
  root: {
    display: "flex",
    alignItems: "center",
    justifyContent: "center",
    padding: "30px 0"
  },
  progress: {
    margin: theme.spacing(2)
  }
}));

const Loading = () => {
  const classes = useStyles();

  return (
    <div className={classes.root}>
      <CircularProgress className={classes.progress} />
      <Typography variant="h5" color="primary">
        Loading...
      </Typography>
    </div>
  );
};

export default Loading;