Skip to content

Commit 718d78b

Browse files
committed
TaskSolutions: анимация при отсутствии решений
1 parent b1be04c commit 718d78b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

hwproj.front/src/components/Solutions/TaskSolutions.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import StudentStatsUtils from "../../services/StudentStatsUtils";
1414
import {QuestionMark} from "@mui/icons-material";
1515
import TaskQuestions from "../Tasks/TaskQuestions";
1616
import ApiSingleton from "../../api/ApiSingleton";
17+
import {DotLottieReact} from '@lottiefiles/dotlottie-react';
1718

1819
interface ITaskSolutionsProps {
1920
courseId: number,
@@ -179,7 +180,14 @@ const TaskSolutions: FC<ITaskSolutionsProps> = (props) => {
179180
onRateSolutionClick={onSolutionRateClick}
180181
isLastSolution={true}
181182
courseId={props.courseId}/>
182-
: "Студент не отправил ни одного решения."}
183+
: <div>
184+
Студент не отправил ни одного решения.
185+
<DotLottieReact
186+
src="https://lottie.host/cb0117df-e436-4d54-9d0b-aa2289732d29/enJE7uM1Dw.lottie"
187+
loop
188+
autoplay
189+
/>
190+
</div>}
183191
</Grid>}
184192
{tabValue === 2 &&
185193
arrayOfRatedSolutions.reverse().map((x, i) =>

0 commit comments

Comments
 (0)