File tree Expand file tree Collapse file tree
hwproj.front/src/components/Courses Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,12 +34,11 @@ import {MoreVert} from "@mui/icons-material";
3434import { DotLottieReact } from "@lottiefiles/dotlottie-react" ;
3535import { FilesUploadWaiter } from "@/components/Files/FilesUploadWaiter" ;
3636import { CourseUnitType } from "@/components/Files/CourseUnitType" ;
37- import CourseGroups from "./CourseGroups" ;
3837
39- type TabValue = "homeworks" | "stats" | "applications" | "groups"
38+ type TabValue = "homeworks" | "stats" | "applications"
4039
4140function isAcceptableTabValue ( str : string ) : str is TabValue {
42- return str === "homeworks" || str === "stats" || str === "applications" || str === "groups" ;
41+ return str === "homeworks" || str === "stats" || str === "applications" ;
4342}
4443
4544interface ICourseState {
@@ -349,13 +348,6 @@ const Course: React.FC = () => {
349348 < Chip size = { "small" } color = { "default" }
350349 label = { newStudents . length } />
351350 </ Stack > } /> }
352- { isCourseMentor && < Tab label = {
353- < Stack direction = "row" spacing = { 1 } >
354- < div > Группы</ div >
355- < Chip size = { "small" } color = { "default" }
356- label = { groups . length } />
357- </ Stack > } />
358- }
359351 </ Tabs >
360352 { tabValue === "homeworks" && < CourseExperimental
361353 courseId = { + courseId ! }
@@ -424,13 +416,6 @@ const Course: React.FC = () => {
424416 courseId = { courseId ! }
425417 />
426418 }
427- { tabValue === "groups" && isCourseMentor &&
428- < CourseGroups
429- courseStudents = { acceptedStudents }
430- groups = { groups }
431- onGroupsUpdate = { loadGroups }
432- />
433- }
434419 </ Grid >
435420 </ div >
436421 ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments