From c17fb4e7a535ad8d02a330415590d2b54bca6197 Mon Sep 17 00:00:00 2001 From: Harang Date: Fri, 27 Dec 2024 19:17:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20active=20=EC=9D=B4=EB=B2=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=83=81=ED=83=9C=20=EC=B6=94=EA=B0=80=20(#276)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/organisms/EventStatus/index.tsx | 8 +++++--- apps/web/src/lib/assets/data/event_status.json | 2 +- packages/core/src/@types/event.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/organisms/EventStatus/index.tsx b/apps/web/src/components/organisms/EventStatus/index.tsx index 8cd3398d..1b165621 100644 --- a/apps/web/src/components/organisms/EventStatus/index.tsx +++ b/apps/web/src/components/organisms/EventStatus/index.tsx @@ -63,9 +63,11 @@ function EventStatus({ eventStatus }: Props) { ); } - return ( - - ); + if (status === 'ACTIVE') { + return ( + + ); + } } export default EventStatus; diff --git a/apps/web/src/lib/assets/data/event_status.json b/apps/web/src/lib/assets/data/event_status.json index c8b899f2..fb166c3c 100644 --- a/apps/web/src/lib/assets/data/event_status.json +++ b/apps/web/src/lib/assets/data/event_status.json @@ -1,5 +1,5 @@ { - "status": "ONGOING", + "status": "ACTIVE", "applicationStartDateTime": "2024/11/18 00:00:00", "applicationEndDateTime": "2024/12/15 23:59:59", "applicantAcceptanceDateTime": "2024/12/26 23:59:59" diff --git a/packages/core/src/@types/event.ts b/packages/core/src/@types/event.ts index e8342c37..a64634a4 100644 --- a/packages/core/src/@types/event.ts +++ b/packages/core/src/@types/event.ts @@ -1,4 +1,4 @@ -export type EventStatusType = 'UPCOMING' | 'ONGOING' | 'INACTIVE' | 'HOT'; +export type EventStatusType = 'UPCOMING' | 'ONGOING' | 'ACTIVE' | 'INACTIVE' | 'HOT'; export interface EventStatus { status: EventStatusType;