diff --git a/src/screens/Home/index.js b/src/screens/Home/index.js index 24bd98a..f74912e 100644 --- a/src/screens/Home/index.js +++ b/src/screens/Home/index.js @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react'; -import { CircularProgress, Grid, Stack } from '@mui/material'; +import { Grid, Skeleton, Stack } from '@mui/material'; import { useUser } from '../../context/user'; import ClassCard from '../../components/ClassCard'; @@ -22,7 +22,16 @@ function Home() {

Turmas

{classrooms === null ? ( - + Array(6) + .fill() + .map((_, index) => ( + + )) ) : classrooms.length !== 0 ? ( classrooms.map(classroom => ( AtribuĂ­das {classrooms === null ? ( - + Array(6) + .fill() + .map((_, index) => ( + + )) ) : classrooms.length !== 0 ? ( classrooms.map(classroom => (