Skip to content

Commit 9376665

Browse files
committed
refactor: frontend view
1 parent 86e368f commit 9376665

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import {Link as RouterLink, useSearchParams} from "react-router-dom";
3-
import {AccountDataDto, StatisticsCourseMatesModel, CourseViewModel, FileInfoDTO, HomeworkViewModel} from "../../api";
3+
import {AccountDataDto, CourseViewModel, FileInfoDTO, HomeworkViewModel, StatisticsCourseMatesModel} from "../../api";
44
import CourseHomework from "../Homeworks/CourseHomework";
55
import AddHomework from "../Homeworks/AddHomework";
66
import StudentStats from "./StudentStats";

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

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import React, {useEffect, useState} from "react";
2-
import {
3-
CourseViewModel,
4-
HomeworkViewModel,
5-
StatisticsCourseMatesModel
6-
} from "../../api/";
2+
import {CourseViewModel, HomeworkViewModel, StatisticsCourseMatesModel} from "../../api/";
73
import {useNavigate, useParams} from 'react-router-dom';
84
import {Table, TableBody, TableCell, TableContainer, TableHead, TableRow} from "@material-ui/core";
95
import StudentStatsCell from "../Tasks/StudentStatsCell";
10-
import {Alert, Button, Chip} from "@mui/material";
6+
import {Alert, Button, Chip, Typography} from "@mui/material";
117
import {grey} from "@material-ui/core/colors";
128
import StudentStatsUtils from "../../services/StudentStatsUtils";
139
import ShowChartIcon from "@mui/icons-material/ShowChart";
@@ -230,12 +226,18 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
230226
variant={"head"}
231227
>
232228
{cm.surname} {cm.name}
233-
<div style={{color: "gray", fontSize: "12px", marginTop: "-4px", lineHeight: '1.2'}}>
229+
<Typography
230+
style={{
231+
color: "GrayText",
232+
fontSize: "12px",
233+
lineHeight: '1.2'
234+
}}
235+
>
234236
{cm.reviewers && cm.reviewers
235237
.filter(r => r.userId !== props.userId)
236238
.map(r => `${r.name} ${r.surname}`)
237239
.join(', ')}
238-
</div>
240+
</Typography>
239241
</TableCell>
240242
{hasHomeworks && <TableCell
241243
align="center"

0 commit comments

Comments
 (0)