Skip to content

Commit 778bf9b

Browse files
committed
Course: исправление стилей
1 parent 0bdc6f6 commit 778bf9b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import ApiSingleton from "../../api/ApiSingleton";
99
import {Button, Tab, Tabs, IconButton} from "@material-ui/core";
1010
import EditIcon from "@material-ui/icons/Edit";
1111
import {FC, useEffect, useState} from "react";
12-
import {makeStyles} from "@material-ui/styles";
1312
import VisibilityIcon from '@material-ui/icons/Visibility';
1413
import {
1514
Alert,
@@ -64,18 +63,10 @@ interface IPageState {
6463
tabValue: TabValue
6564
}
6665

67-
const styles = makeStyles(() => ({
68-
info: {
69-
display: "flex",
70-
justifyContent: "space-between",
71-
},
72-
}))
73-
7466
const Course: React.FC<ICourseProps> = (props: ICourseProps) => {
7567
const {courseId, tab} = useParams()
7668
const [searchParams] = useSearchParams()
7769
const navigate = useNavigate()
78-
const classes = styles()
7970
const {enqueueSnackbar} = useSnackbar()
8071

8172
const [courseState, setCourseState] = useState<ICourseState>({
@@ -292,7 +283,7 @@ const Course: React.FC<ICourseProps> = (props: ICourseProps) => {
292283
: !isMentor ? "Вы можете записаться на курс и отправлять решения." : ""}
293284
</Alert>
294285
</Grid>}
295-
<Grid item container xs={12} className={classes.info} alignItems="center"
286+
<Grid item container xs={12} alignItems="center"
296287
justifyContent="space-between">
297288
<Grid item>
298289
<Stack direction={"row"} spacing={1} alignItems={"start"}>

0 commit comments

Comments
 (0)