diff --git a/services/frontend/src/pages/.gitkeep b/services/frontend/src/pages/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/services/frontend/src/pages/CompetitionPreviewPage/index.tsx b/services/frontend/src/pages/CompetitionPreviewPage/index.tsx deleted file mode 100644 index 15bcdc8..0000000 --- a/services/frontend/src/pages/CompetitionPreviewPage/index.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import { useEffect, useState } from "react"; -import { useParams, useNavigate } from "react-router-dom"; -import Navbar from "@/widgets/Navbar"; -import { Button } from "@/components/ui/button"; -import { ArrowLeft } from "lucide-react"; -import { Competition } from "@/shared/types"; -import { mockCompetitions, mockTasks } from "@/shared/mocks/mocks"; - -const CompetitionPreview = () => { - const { id } = useParams<{ id: string }>(); - const navigate = useNavigate(); - const [competition, setCompetition] = useState(null); - const [isLoading, setIsLoading] = useState(true); - - useEffect(() => { - const fetchCompetition = async () => { - try { - setTimeout(() => { - const found = mockCompetitions.find((comp) => comp.id === id); - setCompetition(found || null); - setIsLoading(false); - }, 500); - } catch (error) { - console.error("Error fetching competition:", error); - setIsLoading(false); - } - }; - - fetchCompetition(); - }, [id]); - - const handleBack = () => { - navigate(-1); - }; - - const handleContinue = () => { - if (competition?.id) { - if (mockTasks && mockTasks.length > 0) { - const firstTaskId = mockTasks[0].id; - navigate(`/competition/${competition.id}/tasks/${firstTaskId}`); - } else { - navigate(`/competition/${competition.id}/tasks`); - } - } - }; - - return ( - <> - -
- - - {isLoading ? ( -
-

Загрузка...

-
- ) : competition ? ( -
-
- {competition.name} -
- -
-
-

- {competition.name} -

- -
- -
-

{competition.description}

-
-
-
- ) : ( -
-

- Соревнование не найдено -

-

- Запрошенное соревнование не существует или было удалено. -

-
- )} -
- - ); -}; - -export default CompetitionPreview; diff --git a/services/frontend/src/pages/CompetitionRunnerPage/utils/utils.ts b/services/frontend/src/pages/CompetitionSession/utils/utils.ts similarity index 100% rename from services/frontend/src/pages/CompetitionRunnerPage/utils/utils.ts rename to services/frontend/src/pages/CompetitionSession/utils/utils.ts diff --git a/services/frontend/src/pages/Competitions/types.ts b/services/frontend/src/pages/Competitions/types.ts deleted file mode 100644 index e69de29..0000000