%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/common/components/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/common/components/LoadingIndicator.jsx |
import React from "react"; import { bool, object } from "prop-types"; import { Backdrop, CircularProgress, } from "@material-ui/core"; import { withStyles } from "@material-ui/core/styles"; const styles = (theme) => ({ backdrop: { zIndex: theme.zIndex.drawer + 1, color: theme.palette.primary.main, }, }); function LoadingIndicator({ classes, loading, }) { return ( <Backdrop transitionDuration={1000} className={classes.backdrop} open={loading} > <CircularProgress color="inherit" /> </Backdrop> ); } LoadingIndicator.propTypes = { classes: object.isRequired, loading: bool.isRequired, }; export default withStyles(styles)(LoadingIndicator);