-
{competitionTitle}
-=======
- <>
-
-
-
-
- {competitionTitle}
-
->>>>>>> 58f493250150ba62ac4f325a0708b96eb88661e9:services/frontend/src/pages/CompetitionSession/index.tsx
-
-
-
- {tasks.map((task) => (
-
handleTaskClick(task.id)}
- >
- {task.number}
-
- ))}
-
-
-
-
-
-
- {currentTask ? (
-
- {/* Left Container - Task Description */}
-
-
- Задача {currentTask.number}
-
-
-
-
- Рассмотрим последовательность чисел 2, 3, 5, 9, 17, 33, 65,
- 129, ... Каждый член этой последовательности, начиная с
- третьего, равен сумме двух предыдущих членов.
-
-
- Найдите сумму первых 15 членов этой последовательности.
-
-
В ответе укажите целое число.
-
-
-
- {/* Right Container - Solution Area */}
-
- {/* Solution Status Card */}
-
-
-
- Решение 12345
-
-
- Зачтено 5/10 баллов
-
-
-
- 1 марта, 08:41
-
-
-
- {/* Answer Input */}
-
-
-
- {/* Action Buttons */}
-
-
- История
-
-
- Отправить решение
-
-
-
-
- ) : (
-
- )}
-
-
- >
- );
-};
-
-export default CompetitionRunnerPage;
diff --git a/services/frontend/src/pages/CompetitionRunnerPage/index.tsx b/services/frontend/src/pages/CompetitionSesssion/index.tsx
similarity index 98%
rename from services/frontend/src/pages/CompetitionRunnerPage/index.tsx
rename to services/frontend/src/pages/CompetitionSesssion/index.tsx
index dc12b58..61cc748 100644
--- a/services/frontend/src/pages/CompetitionRunnerPage/index.tsx
+++ b/services/frontend/src/pages/CompetitionSesssion/index.tsx
@@ -4,9 +4,8 @@ import { Task } from "@/shared/types";
import { getTaskBgColor, getTaskTextColor } from "./utils/utils";
import { mockTasks } from "@/shared/mocks/mocks";
import { Button } from "@/components/ui/button";
-import { Calendar } from "lucide-react";
-const CompetitionRunnerPage = () => {
+const CompetitionSessionPage = () => {
const { id, taskId } = useParams<{ id: string; taskId?: string }>();
const navigate = useNavigate();
const [competitionTitle, setCompetitionTitle] = useState("Олимпиада DANO 2025. Индивидуальный этап");
@@ -147,4 +146,4 @@ const CompetitionRunnerPage = () => {
);
};
-export default CompetitionRunnerPage;
+export default CompetitionSessionPage;
diff --git a/services/frontend/src/pages/CompetitionRunnerPage/utils/utils.ts b/services/frontend/src/pages/CompetitionSesssion/utils/utils.ts
similarity index 100%
rename from services/frontend/src/pages/CompetitionRunnerPage/utils/utils.ts
rename to services/frontend/src/pages/CompetitionSesssion/utils/utils.ts
diff --git a/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx b/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx
index 9b7c7da..5049675 100644
--- a/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx
+++ b/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx
@@ -1,7 +1,6 @@
import { Competition, CompetitionStatus } from "@/shared/types";
import { cn } from "@/shared/lib/utils";
import { Card, CardContent } from "@/components/ui/card";
-import { useNavigate } from "react-router";
interface CompetitionCardProps {
competition: Competition;
@@ -12,11 +11,6 @@ export function CompetitionCard({
competition,
className,
}: CompetitionCardProps) {
- const navigate = useNavigate();
-
- const handleClick = () => {
- navigate(`/competition/${competition.id}`);
- };
return (
{competitions.map((competition) => (
-
+
))}