diff options
Diffstat (limited to 'src/components/Loading/Loading.tsx')
-rw-r--r-- | src/components/Loading/Loading.tsx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/components/Loading/Loading.tsx b/src/components/Loading/Loading.tsx new file mode 100644 index 0000000..a784be1 --- /dev/null +++ b/src/components/Loading/Loading.tsx @@ -0,0 +1,33 @@ +import React from 'react'; + +import { + Card, + CardHeader, +} from '@material-ui/core'; + +import { makeStyles } from '@material-ui/core/styles'; +import CircularProgress from '@material-ui/core/CircularProgress'; + + +const useStyles = makeStyles(theme => ({ + root: { + padding: theme.spacing(1), + background: theme.palette.background.elevation2, + }, +})); + +const Loading: React.FC = () => { + const classes = useStyles(); + + return ( + <Card className={classes.root}> + <CardHeader + avatar={(<CircularProgress color="secondary" />)} + title="Loading" + subheader="Please, wait." + /> + </Card> + ) +}; + +export default Loading; |