diff --git a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/ActionButtons/index.tsx b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/ActionButtons/index.tsx index cf02e94..d22ae9c 100644 --- a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/ActionButtons/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/ActionButtons/index.tsx @@ -1,19 +1,21 @@ import React from 'react'; import { Button } from "@/components/ui/button"; -import { Loader2 } from "lucide-react"; +import { Loader2, CheckCircle } from "lucide-react"; interface ActionButtonsProps { onSubmit: () => void; onHistoryClick: () => void; isSubmitting?: boolean; hasSubmissionsLeft?: boolean; + isCleared: boolean; } const ActionButtons: React.FC = ({ onSubmit, onHistoryClick, isSubmitting = false, - hasSubmissionsLeft = true + hasSubmissionsLeft = true, + isCleared }) => { return (
@@ -26,7 +28,15 @@ const ActionButtons: React.FC = ({ История - {hasSubmissionsLeft ? ( + {isCleared ? ( + + ) : hasSubmissionsLeft ? (