diff options
Diffstat (limited to 'src/components/Loading/Loading.tsx')
-rw-r--r-- | src/components/Loading/Loading.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/Loading/Loading.tsx b/src/components/Loading/Loading.tsx new file mode 100644 index 0000000..34d436b --- /dev/null +++ b/src/components/Loading/Loading.tsx @@ -0,0 +1,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; + |