Skip to content

Commit

Permalink
feat: 🎸 updated styles for typography to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Boyle committed Jan 14, 2021
1 parent 4948c98 commit 9788a1a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/LoadingSpinner/LoadingSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,32 @@ import {makeStyles} from '@material-ui/core/styles';
import LoadingIcon from '../LoadingIcon';
import {Grid, Typography} from '@material-ui/core';

const useStyles = makeStyles({
const gridStyles = makeStyles({
root: {
display: 'flex',
flex: '1 1 auto',
flexDirection: 'column',
width: '100%',
animation: '0.45s fade-in',
alignItems: 'center'
},
typography: {
}
});

const typographyStyles = makeStyles({
root: {
paddingTop: '10px'
}
});

function LoadingSpinner({message}) {
const classes = useStyles();
const gridClasses = gridStyles();
const typographyClasses = typographyStyles();

return (
<Grid classes={classes}>
<Grid classes={gridClasses}>
<LoadingIcon height="10rem" />
{message && (
<Typography className={classes.typography} variant="subtitle1">
<Typography classes={typographyClasses} variant="subtitle1">
{message}
</Typography>
)}
Expand Down

0 comments on commit 9788a1a

Please sign in to comment.