Added loadingbar for resource loading close #38
This commit is contained in:
@@ -3,6 +3,7 @@ import { makeStyles } from '@material-ui/core/styles';
|
|||||||
import Grid from '@material-ui/core/Grid';
|
import Grid from '@material-ui/core/Grid';
|
||||||
import ResourceCard from './resourceCard';
|
import ResourceCard from './resourceCard';
|
||||||
import Typography from '@material-ui/core/Typography';
|
import Typography from '@material-ui/core/Typography';
|
||||||
|
import CircularProgress from '@material-ui/core/CircularProgress';
|
||||||
|
|
||||||
|
|
||||||
const useStyles = makeStyles(theme => ({
|
const useStyles = makeStyles(theme => ({
|
||||||
@@ -61,6 +62,8 @@ export default function SelectResource() {
|
|||||||
loadResources();
|
loadResources();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
resources.length === 0 ?
|
||||||
|
<CircularProgress color="secondary" disableShrink /> :
|
||||||
|
|
||||||
<Grid container spacing={2} >
|
<Grid container spacing={2} >
|
||||||
<Grid item xs={12} className={classes.grid}>
|
<Grid item xs={12} className={classes.grid}>
|
||||||
|
|||||||
Reference in New Issue
Block a user