@@ -9,7 +9,6 @@ import ApiSingleton from "../../api/ApiSingleton";
99import { Button , Tab , Tabs , IconButton } from "@material-ui/core" ;
1010import EditIcon from "@material-ui/icons/Edit" ;
1111import { FC , useEffect , useState } from "react" ;
12- import { makeStyles } from "@material-ui/styles" ;
1312import VisibilityIcon from '@material-ui/icons/Visibility' ;
1413import {
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-
7466const 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