Дата | Название занятия | {data.students.map((student) => ({student.name} | ))}
---|---|---|
{dayjs(lesson.date).format('DD.MM.YYYY')} | {lesson.name} | {data.students.map((st) => { const wasThere = lesson.students.findIndex((u) => u.sub === st.sub) !== -1 return{wasThere ? '+' : '-'} | })}