您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

29 行
955 B

  1. import {Box, CircularProgress, Grid, Typography} from "@mui/material";
  2. import {FormattedMessage} from "react-intl";
  3. const LoadingComponent = ({disableText,alignItems}) => {
  4. return (
  5. <Grid item xs={12} md={12} lg={12} justifyContent="space-between" alignItems="center">
  6. <Box
  7. display="flex"
  8. justifyContent="center"
  9. alignItems="center"
  10. // autoHeight={true}
  11. >
  12. <Grid container direction="column" alignItems={alignItems?alignItems:"center"}>
  13. <CircularProgress/>
  14. {disableText?
  15. null
  16. :
  17. <Typography variant="h5">
  18. <FormattedMessage id="loading" />
  19. </Typography>
  20. }
  21. </Grid>
  22. </Box>
  23. </Grid>
  24. )
  25. }
  26. export default LoadingComponent;