@@ -2,7 +2,7 @@ import * as React from "react";
22import { CoursePreviewView } from "@/api" ;
33import { NavLink } from "react-router-dom" ;
44import MentorsList from "../Common/MentorsList" ;
5- import { Box , Divider , Grid , ListItem , Skeleton , Typography } from "@mui/material" ;
5+ import { Box , Chip , Divider , Grid , ListItem , Skeleton , Stack , Typography } from "@mui/material" ;
66import NameBuilder from "../Utils/NameBuilder" ;
77
88interface ICoursesProps {
@@ -35,15 +35,19 @@ export class CoursesList extends React.Component<ICoursesProps, {}> {
3535 < ListItem
3636 style = { { padding : 0 , marginBottom : 5 } }
3737 >
38- < NavLink
39- to = { isExpert ? "/task/" + course . taskId ! . toString ( ) + "/default"
40- : "/courses/" + course . id ! . toString ( ) }
41- style = { { color : "#212529" } }
42- >
43- < Typography component = "div" style = { { fontSize : "20px" } } >
44- { NameBuilder . getCourseFullName ( course . name ! , course . groupName ) }
45- </ Typography >
46- </ NavLink >
38+ < Stack direction = { "row" } alignItems = { "center" } spacing = { 1 } >
39+ < NavLink
40+ to = { isExpert ? "/task/" + course . taskId ! . toString ( ) + "/default"
41+ : "/courses/" + course . id ! . toString ( ) }
42+ style = { { color : "#212529" } }
43+ >
44+ < Typography component = "div" style = { { fontSize : "20px" } } >
45+ { NameBuilder . getCourseFullName ( course . name ! , course . groupName ) }
46+ </ Typography >
47+ </ NavLink >
48+ { course . isCompleted &&
49+ < Chip style = { { color : "GrayText" } } label = "Курс завершен" size = { "small" } /> }
50+ </ Stack >
4751 </ ListItem >
4852 < MentorsList mentors = { course . mentors ! } />
4953 { i < courses . length - 1 ? < Divider style = { { marginTop : 5 , marginBottom : 5 } } /> : null }
0 commit comments