Skip to content

Commit

Permalink
remove unneccesary container
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleblanc committed Sep 25, 2019
1 parent aeff4fd commit ed615c7
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions src/components/LoaderOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ import CircularProgress from '@material-ui/core/CircularProgress';
import { fade } from '@material-ui/core/styles/colorManipulator';

const styles = theme => ({
baseContainer: {
position: 'absolute',
top: 0,
left: 0,
height: '100%',
width: '100%',
zIndex: 110
},
overlay: {
display: 'table',
width: '100%',
height: '100%',
backgroundColor: fade(theme.palette.background.paper, 0.7)
backgroundColor: fade(theme.palette.background.paper, 0.7),
position: 'absolute',
top: 0,
left: 0,
zIndex: 110
},
progressContainer: {
display: 'table-cell',
Expand All @@ -31,11 +27,9 @@ class LoaderOverlay extends React.Component {
render() {
const { classes } = this.props;
return(
<div className={classes.baseContainer}>
<div className={classes.overlay}>
<div className={classes.progressContainer}>
<CircularProgress />
</div>
<div className={classes.overlay}>
<div className={classes.progressContainer}>
<CircularProgress />
</div>
</div>
)
Expand Down

0 comments on commit ed615c7

Please sign in to comment.