diff --git a/src/screens/Classroom/View.js b/src/screens/Classroom/View.js index c503ff3..2fd6111 100644 --- a/src/screens/Classroom/View.js +++ b/src/screens/Classroom/View.js @@ -6,6 +6,7 @@ import { Grid, Link, Paper, + Skeleton, Stack, Tab, Tabs, @@ -15,6 +16,7 @@ import { import { TAB_OPTIONS } from './tabOptions'; import styles from './styles'; import AnnouncementCard from '../../components/AnnouncementCard'; +import { createArrayFrom1ToN } from '../../utils/createArrayFrom1ToN'; function View({ layoutType, @@ -28,7 +30,7 @@ function View({ return ( {classroom === null ? ( -

Loading...

+ ) : ( )} {announcementsTabData === null ? ( -

Loading...

+ + + + + + {createArrayFrom1ToN(4).map(i => ( + + ))} + + ) : ( @@ -119,7 +136,7 @@ function View({ return ( {classroom === null ? ( -

Loading...

+ ) : ( )} {announcementsTabData === null ? ( -

Loading...

+ + + + {createArrayFrom1ToN(4).map(i => ( + + ))} + ) : (