@@ -11,7 +11,7 @@ import {
1111 SolutionActualityPart , StudentDataDto
1212} from '@/api'
1313import ApiSingleton from "../../api/ApiSingleton" ;
14- import { Alert , Avatar , Rating , Stack , Tooltip , Card , CardContent , CardActions , IconButton , Chip } from "@mui/material" ;
14+ import { Alert , Rating , Stack , Card , CardContent , CardActions , IconButton , Chip , Tooltip , Avatar } from "@mui/material" ;
1515import AvatarUtils from "../Utils/AvatarUtils" ;
1616import Utils from "../../services/Utils" ;
1717import { RatingStorage } from "../Storages/RatingStorage" ;
@@ -28,6 +28,7 @@ import KeyboardCommandKeyIcon from '@mui/icons-material/KeyboardCommandKey';
2828import MouseOutlinedIcon from '@mui/icons-material/MouseOutlined' ;
2929import BlurOnIcon from '@mui/icons-material/BlurOn' ;
3030import BlurOffIcon from '@mui/icons-material/BlurOff' ;
31+ import { UserAvatar } from "../Common/UserAvatar" ;
3132
3233interface ISolutionProps {
3334 courseId : number ,
@@ -463,7 +464,7 @@ const TaskSolutionComponent: FC<ISolutionProps> = (props) => {
463464 alignItems = { students . length === 1 ? "center" : "normal" } spacing = { 1 } >
464465 < Stack direction = { "row" } spacing = { 1 } >
465466 { students && students . map ( t => < Tooltip title = { t . surname + " " + t . name } >
466- < Avatar { ... AvatarUtils . stringAvatar ( t ) } / >
467+ < span > < UserAvatar user = { t } key = { t . userId } /> </ span >
467468 </ Tooltip > ) }
468469 </ Stack >
469470 < Grid item spacing = { 1 } container direction = "column" >
0 commit comments