-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLoading.js
41 lines (36 loc) · 898 Bytes
/
Loading.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import LinearProgress from '@material-ui/core/LinearProgress';
const useStyles = makeStyles((theme) => ({
circular: {
display: 'flex',
'& > * + *': {
marginLeft: theme.spacing(4),
},
},
linear: {
width: '100%',
'& > * + *': {
marginTop: theme.spacing(2),
},
},
}));
export function CircularIndeterminate() {
const classes = useStyles();
return (
<div className={classes.circular}>
<CircularProgress />
{/* <CircularProgress color="secondary" /> */}
</div>
);
}
export function LinearIndeterminate() {
const classes = useStyles();
return (
<div className={classes.linear}>
<LinearProgress />
{/* <LinearProgress color="secondary" /> */}
</div>
);
}