From fdbb1bc4120bbcb1b06b6a79b6a94a7f74b3966e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Wed, 24 Aug 2022 15:41:29 -0300 Subject: [PATCH] Add idle view for PeopleTab in desktop layoutType --- src/screens/Classroom/PeopleTab/index.js | 101 ++++++++++++++++++++++- 1 file changed, 99 insertions(+), 2 deletions(-) diff --git a/src/screens/Classroom/PeopleTab/index.js b/src/screens/Classroom/PeopleTab/index.js index e3a9142..ca60200 100644 --- a/src/screens/Classroom/PeopleTab/index.js +++ b/src/screens/Classroom/PeopleTab/index.js @@ -1,4 +1,11 @@ -import { Container, Skeleton, Stack } from '@mui/material'; +import { + Avatar, + Container, + Link, + Skeleton, + Stack, + Typography, +} from '@mui/material'; import { createArrayFrom1ToN } from '../../../utils/createArrayFrom1ToN'; function PeopleTab({ layoutType, peopleTabData }) { @@ -60,7 +67,97 @@ function PeopleTab({ layoutType, peopleTabData }) { ); case 'idle': - return people.map(p =>

{p.name}

); + return ( + + + + Docentes + + + {people + .filter(p => p.role === 'PROFESSOR') + .map(p => ( + + + {p.name} + + ))} + + + + + + Discentes + + + {people + .filter(p => p.role === 'STUDENT') + .map(p => ( + + + {p.name} + + ))} + + + + ); case 'gone': return null; default: