%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.632e77b3fb93bc8da5b589b869bc0037/static/js/common/components/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.632e77b3fb93bc8da5b589b869bc0037/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);

Zerion Mini Shell 1.0