-
Notifications
You must be signed in to change notification settings - Fork 934
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0ea9e5
commit 9107a9a
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
import { withStyles } from '@material-ui/core/styles'; | ||
import CircularProgress from '@material-ui/core/CircularProgress'; | ||
import { fade } from '@material-ui/core/styles/colorManipulator'; | ||
|
||
const styles = theme => ({ | ||
overlay: { | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
zIndex: 110, | ||
display: 'flex', | ||
width: '100%', | ||
height: '100%', | ||
backgroundColor: fade(theme.palette.background.paper, 0.7) | ||
}, | ||
progressContainer: { | ||
margin: 'auto' | ||
} | ||
}) | ||
|
||
class LoaderOverlay extends React.Component { | ||
render() { | ||
const { classes } = this.props; | ||
return( | ||
<div className={classes.overlay}> | ||
<div className={classes.progressContainer}> | ||
<CircularProgress /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default withStyles(styles, { withTheme: true })(LoaderOverlay); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters