aboutsummaryrefslogtreecommitdiff
path: root/src/components/Loading/Loading.tsx
blob: 34d436b6a8b4e70f887d4751496232a9cb1ea779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import CircularProgress from '@material-ui/core/CircularProgress';
import { makeStyles } from '@material-ui/core';

const useStyles = makeStyles(theme => ({
  loader: {
    width: '100%',
    textAlign: 'center',
    marginTop: theme.spacing(10)
  }
}));

const Loading: React.FC = React.memo(() => {
  const classes = useStyles();

  return (
    <div className={classes.loader}>
      <CircularProgress color="primary" style={{ margin: '0 auto' }} />
    </div>
  );
});

export default Loading;