Skip to content

Commit

Permalink
chore: active 이벤트 상태 추가 (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin authored Dec 27, 2024
1 parent ff4ac94 commit c17fb4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions apps/web/src/components/organisms/EventStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ function EventStatus({ eventStatus }: Props) {
);
}

return (
<Badge label={eventStatus.label || `DND는 ${CURRENT_FLAG}기 진행중`} variant="success" />
);
if (status === 'ACTIVE') {
return (
<Badge label={eventStatus.label || `DND는 ${CURRENT_FLAG}기 진행중`} variant="success" />
);
}
}

export default EventStatus;
2 changes: 1 addition & 1 deletion apps/web/src/lib/assets/data/event_status.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/@types/event.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type EventStatusType = 'UPCOMING' | 'ONGOING' | 'INACTIVE' | 'HOT';
export type EventStatusType = 'UPCOMING' | 'ONGOING' | 'ACTIVE' | 'INACTIVE' | 'HOT';

export interface EventStatus {
status: EventStatusType;
Expand Down

0 comments on commit c17fb4e

Please sign in to comment.