Skip to content

Commit 224c1e6

Browse files
committed
wip
1 parent 4ebd59d commit 224c1e6

2 files changed

Lines changed: 2 additions & 108 deletions

File tree

hwproj.front/src/components/Courses/Course.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ import {MoreVert} from "@mui/icons-material";
3434
import {DotLottieReact} from "@lottiefiles/dotlottie-react";
3535
import {FilesUploadWaiter} from "@/components/Files/FilesUploadWaiter";
3636
import {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

4140
function 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

4544
interface 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
);

hwproj.front/src/components/Courses/CourseGroups.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)