Add students emails to UI

This commit is contained in:
Tanner Collin 2020-02-21 00:10:47 +00:00
parent ca54c48d39
commit 50a5435dbc

View File

@ -90,6 +90,18 @@ export function InstructorClassAttendance(props) {
<div>
<Header size='medium'>Instructor Panel</Header>
<Header size='small'>Student Emails</Header>
{clazz.students.length ?
clazz.students
.filter(x => x.attendance_status !== 'Withdrawn')
.map(x => x.student_email)
.join('; ')
:
<p>No students yet.</p>
}
<Header size='small'>Mark Attendance</Header>
{clazz.students.length ?