Skip to content

Commit 0be5404

Browse files
committed
Cleanup
1 parent 5433e3b commit 0be5404

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ import {
2626
REVIEW_TYPES,
2727
MILESTONE_STATUS,
2828
PHASE_PRODUCT_CHALLENGE_ID_FIELD,
29-
QA_TRACK_ID, DESIGN_CHALLENGE_TYPES,
29+
QA_TRACK_ID,
3030
DS_TRACK_ID
3131
} from '../../config/constants'
3232
import { PrimaryButton, OutlineButton } from '../Buttons'
3333
import TrackField from './Track-Field'
3434
import TypeField from './Type-Field'
35-
import ChallengeTypeField from './ChallengeType-Field'
3635
import ChallengeNameField from './ChallengeName-Field'
3736
import CopilotField from './Copilot-Field'
3837
import ReviewTypeField from './ReviewType-Field'
@@ -1561,11 +1560,9 @@ class ChallengeEditor extends Component {
15611560
const currentChallengeId = this.getCurrentChallengeId()
15621561
const showTimeline = false // disables the timeline for time being https://github.com/topcoder-platform/challenge-engine-ui/issues/706
15631562
const copilotResources = metadata.members || challengeResources
1564-
const isDesignChallenge = challenge.trackId === DES_TRACK_ID
15651563
const isDevChallenge = challenge.trackId === DEV_TRACK_ID
15661564
const isMM = challenge.typeId === MARATHON_TYPE_ID
15671565
const isChallengeType = challenge.typeId === CHALLENGE_TYPE_ID
1568-
const showRoundType = isDesignChallenge && isChallengeType
15691566
const showDashBoard = (challenge.trackId === DS_TRACK_ID && isChallengeType) || (isDevChallenge && isMM)
15701567
const useDashboardData = _.find(challenge.metadata, { name: 'show_data_dashboard' })
15711568
const useDashboard = useDashboardData ? useDashboardData.value : true

src/config/constants.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,6 @@ export const REVIEW_TYPES = {
159159
COMMUNITY: 'COMMUNITY'
160160
}
161161

162-
export const ROUND_TYPES = {
163-
'SINGLE_ROUND': 'Single round',
164-
'TWO_ROUNDS': 'Two rounds'
165-
}
166-
167-
export const DESIGN_CHALLENGE_TYPES = [
168-
'Application Front-End Design',
169-
'Print/Presentation',
170-
'Web Design',
171-
'Widget or Mobile Screen Design',
172-
'Wireframes'
173-
]
174-
175162
// List of subtracks that should be considered as Marathon Matches
176163
export const MARATHON_MATCH_SUBTRACKS = [
177164
'DEVELOP_MARATHON_MATCH'

0 commit comments

Comments
 (0)