From 74d0c9ac4a53f7e6d48bf5c1e3f10be8f97ec79b Mon Sep 17 00:00:00 2001 From: rngsurrounded Date: Sun, 2 Mar 2025 20:54:12 +0900 Subject: [PATCH] placeholder check --- .../components/CompetitionCard/index.tsx | 2 +- services/frontend/src/pages/Competitions/index.tsx | 7 ------- services/frontend/src/shared/types/task.ts | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 services/frontend/src/shared/types/task.ts diff --git a/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx b/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx index 8ae52eb..2298b9f 100644 --- a/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx +++ b/services/frontend/src/pages/Competitions/components/CompetitionCard/index.tsx @@ -22,7 +22,7 @@ export function CompetitionCard({
{competition.image_url && ( {competition.title} diff --git a/services/frontend/src/pages/Competitions/index.tsx b/services/frontend/src/pages/Competitions/index.tsx index 511ac15..e818fa2 100644 --- a/services/frontend/src/pages/Competitions/index.tsx +++ b/services/frontend/src/pages/Competitions/index.tsx @@ -112,12 +112,5 @@ const SectionTitle = ({ children }: { children: React.ReactNode }) => { return

{children}

; }; -const EmptyState = ({ message }: { message: string }) => { - return ( -
-

{message}

-
- ); -}; export default CompetitionsPage; \ No newline at end of file diff --git a/services/frontend/src/shared/types/task.ts b/services/frontend/src/shared/types/task.ts new file mode 100644 index 0000000..6de248b --- /dev/null +++ b/services/frontend/src/shared/types/task.ts @@ -0,0 +1,14 @@ +export interface Task { + id: string; + title: string; + description: string; + type: 'input' | 'file' | 'code'; + in_competition_position: number; + points: number; +} + +enum TaskType { + INPUT = "input", + FILE = "file", + CODE = "code", +}