From 9f05b4f3c1a97f788cd1d01785cbae6ec4295823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Sun, 28 Aug 2022 15:16:07 -0300 Subject: [PATCH] Add mobile layout to people tab --- src/screens/Classroom/PeopleTab/index.js | 168 ++++++++++++++++++++++- 1 file changed, 166 insertions(+), 2 deletions(-) diff --git a/src/screens/Classroom/PeopleTab/index.js b/src/screens/Classroom/PeopleTab/index.js index 675ccac..7d9884a 100644 --- a/src/screens/Classroom/PeopleTab/index.js +++ b/src/screens/Classroom/PeopleTab/index.js @@ -159,9 +159,173 @@ function PeopleTab({ layoutType, peopleTabData }) { } else if (layoutType === 'mobile') { switch (state) { case 'loading': - return

Loading...

; + return ( + + + + + + + + + + + + {createArrayFrom1ToN(5).map(i => ( + + + + + ))} + + + ); case 'idle': - return

People Tab

; + 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: