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", +}