(#23) Убрал кнопку с действиями для студентов
This commit is contained in:
parent
4d498662f8
commit
d084870c49
@ -376,7 +376,7 @@ const LessonList = () => {
|
|||||||
Дата
|
Дата
|
||||||
</Th>
|
</Th>
|
||||||
<Th>Название</Th>
|
<Th>Название</Th>
|
||||||
<Th>action</Th>
|
{isTeacher(user) && <Th>action</Th>}
|
||||||
<Th isNumeric>Отмечено</Th>
|
<Th isNumeric>Отмечено</Th>
|
||||||
</Tr>
|
</Tr>
|
||||||
</Thead>
|
</Thead>
|
||||||
@ -401,26 +401,28 @@ const LessonList = () => {
|
|||||||
{dayjs(lesson.date).format('H:mm DD.MM.YY')}
|
{dayjs(lesson.date).format('H:mm DD.MM.YY')}
|
||||||
</Td>
|
</Td>
|
||||||
<Td>{lesson.name}</Td>
|
<Td>{lesson.name}</Td>
|
||||||
<Td>
|
{isTeacher(user) && (
|
||||||
<Menu>
|
<Td>
|
||||||
<MenuButton as={Button}>
|
<Menu>
|
||||||
<EditIcon />
|
<MenuButton as={Button}>
|
||||||
</MenuButton>
|
<EditIcon />
|
||||||
<MenuList>
|
</MenuButton>
|
||||||
<MenuItem
|
<MenuList>
|
||||||
onClick={() => {
|
<MenuItem
|
||||||
setShowForm(true)
|
onClick={() => {
|
||||||
setEditLesson(lesson)
|
setShowForm(true)
|
||||||
}}
|
setEditLesson(lesson)
|
||||||
>
|
}}
|
||||||
Edit
|
>
|
||||||
</MenuItem>
|
Edit
|
||||||
<MenuItem onClick={() => setlessonToDelete(lesson)}>
|
</MenuItem>
|
||||||
Delete
|
<MenuItem onClick={() => setlessonToDelete(lesson)}>
|
||||||
</MenuItem>
|
Delete
|
||||||
</MenuList>
|
</MenuItem>
|
||||||
</Menu>
|
</MenuList>
|
||||||
</Td>
|
</Menu>
|
||||||
|
</Td>
|
||||||
|
)}
|
||||||
<Td isNumeric>{lesson.students.length}</Td>
|
<Td isNumeric>{lesson.students.length}</Td>
|
||||||
</Tr>
|
</Tr>
|
||||||
))}
|
))}
|
||||||
|
Loading…
Reference in New Issue
Block a user