Skip to content

Commit 48e9f9d

Browse files
Merge pull request #262 from topcoder-platform/issue-4948
utils/tc - Added CHALLENGE_STATUS
2 parents c9032ff + a6fb195 commit 48e9f9d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

__tests__/__snapshots__/index.js.snap

+6
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ Object {
371371
"processMMSubmissions": [Function],
372372
},
373373
"tc": Object {
374+
"CHALLENGE_STATUS": Object {
375+
"ACTIVE": "Active",
376+
"CANCELLED": "Cancelled",
377+
"COMPLETED": "Completed",
378+
"DRAFT": "Draft",
379+
},
374380
"COMPETITION_TRACKS": Object {
375381
"DATA_SCIENCE": "Data Science",
376382
"DESIGN": "Design",

src/utils/tc.js

+10
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ export const OLD_SUBTRACKS = {
3131
TESTING_COMPETITION: 'TESTING_COMPETITION',
3232
};
3333

34+
/*
35+
* Challenge Status
36+
*/
37+
export const CHALLENGE_STATUS = {
38+
ACTIVE: 'Active',
39+
CANCELLED: 'Cancelled',
40+
COMPLETED: 'Completed',
41+
DRAFT: 'Draft',
42+
};
43+
3444
/**
3545
* Review Opportunity types
3646
*/

0 commit comments

Comments
 (0)