diff --git a/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx b/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx index 9d6b687..af3e4f4 100644 --- a/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx @@ -52,4 +52,4 @@ const TaskContent: React.FC = ({ task }) => { ); }; -export default TaskContent; \ No newline at end of file +export default TaskContent; diff --git a/services/frontend/src/pages/CompetitionSession/index.tsx b/services/frontend/src/pages/CompetitionSession/index.tsx index f068751..2d2b09b 100644 --- a/services/frontend/src/pages/CompetitionSession/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/index.tsx @@ -6,7 +6,7 @@ import CompetitionHeader from "./components/CompetitionHeader"; import TaskContent from "./components/TaskContent"; import TaskSolution from "./modules/TaskSolution"; -const CompetitionSessionPage = () => { +const CompetitionSession = () => { const { id, taskId } = useParams<{ id: string; taskId?: string }>(); const [tasks] = useState(mockTasks); const [answer, setAnswer] = useState(""); @@ -21,9 +21,6 @@ const CompetitionSessionPage = () => { console.log("Submitting answer:", answer); }; - const handleHistoryClick = () => { - console.log("View history"); - }; return (
@@ -44,7 +41,6 @@ const CompetitionSessionPage = () => { answer={answer} setAnswer={setAnswer} onSubmit={handleSubmit} - onHistoryClick={handleHistoryClick} />
) : ( @@ -60,4 +56,4 @@ const CompetitionSessionPage = () => { ); }; -export default CompetitionSessionPage; \ No newline at end of file +export default CompetitionSession; \ No newline at end of file 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 4a4dd3e..4aa7c62 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 @@ -5,13 +5,11 @@ import { Solution } from "@/shared/types"; import { mockSolutions } from '@/shared/mocks/mocks'; interface ActionButtonsProps { - onHistoryClick: () => void; onSubmit: () => void; solutionHistory?: Solution[]; } const ActionButtons: React.FC = ({ - onHistoryClick, onSubmit, solutionHistory = mockSolutions }) => { @@ -19,7 +17,6 @@ const ActionButtons: React.FC = ({ const handleHistoryClick = () => { setIsHistoryOpen(true); - onHistoryClick(); }; return ( diff --git a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/CodeSolution/index.tsx b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/CodeSolution/index.tsx index 76800ad..11cc8a7 100644 --- a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/CodeSolution/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/CodeSolution/index.tsx @@ -1,6 +1,6 @@ import React, { useRef, useEffect, useState } from 'react'; import * as monaco from 'monaco-editor'; -import { Copy, Check } from 'lucide-react'; // Import Lucide React icons +import { Copy, Check } from 'lucide-react'; interface CodeSolutionProps { answer: string; diff --git a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/SolutionStatus/index.tsx b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/SolutionStatus/index.tsx index 008ff8e..dbe77e9 100644 --- a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/SolutionStatus/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/components/SolutionStatus/index.tsx @@ -41,4 +41,4 @@ const SolutionStatus: React.FC = ({ solution }) => { ); }; -export default SolutionStatus; \ No newline at end of file +export default SolutionStatus; diff --git a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/index.tsx b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/index.tsx index 58db705..9c25bf8 100644 --- a/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/modules/TaskSolution/index.tsx @@ -12,7 +12,7 @@ interface TaskSolutionProps { answer: string; setAnswer: (value: string) => void; onSubmit: () => void; - onHistoryClick: () => void; + } const TaskSolution: React.FC = ({ @@ -21,7 +21,6 @@ const TaskSolution: React.FC = ({ answer, setAnswer, onSubmit, - onHistoryClick, }) => { const [selectedFile, setSelectedFile] = useState(null); const fileInputRef = useRef(null); @@ -46,7 +45,7 @@ const TaskSolution: React.FC = ({ )} - + ); }; diff --git a/services/frontend/src/pages/Review/index.tsx b/services/frontend/src/pages/Review/index.tsx new file mode 100644 index 0000000..e69de29