From 8e95da1e0123e37417c5285bd588a22a116d9a5f Mon Sep 17 00:00:00 2001 From: rngsurrounded Date: Tue, 4 Mar 2025 01:33:33 +0900 Subject: [PATCH] minor fixes --- .../components/ActionButtons/index.tsx | 16 +++++++++++++--- .../modules/TaskSolution/index.tsx | 5 +++++ 2 files changed, 18 insertions(+), 3 deletions(-) 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 ? (