File tree 2 files changed +25
-0
lines changed
src/components/ChallengeEditor
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -459,3 +459,22 @@ ul.linkList {
459
459
content :' ,\0000a0 ' ; /* Non-breaking space */
460
460
}
461
461
}
462
+
463
+ .newPlatformWarning {
464
+ text-align : center ;
465
+ background-color : rgb (204 , 65 , 65 );
466
+ padding : 20px ;
467
+ max-width : 600px ;
468
+ border-radius : 6px ;
469
+ margin-bottom : 10px ;
470
+
471
+ a {
472
+ color : white ;
473
+ text-decoration : underline ;
474
+ }
475
+ }
476
+
477
+ .warningHeader {
478
+ font-weight : bold ;
479
+ font-size : 1.2rem ;
480
+ }
Original file line number Diff line number Diff line change @@ -1641,6 +1641,8 @@ class ChallengeEditor extends Component {
1641
1641
const currentChallengeId = this . getCurrentChallengeId ( )
1642
1642
const showTimeline = false // disables the timeline for time being https://github.com/topcoder-platform/challenge-engine-ui/issues/706
1643
1643
const copilotResources = metadata . members || challengeResources
1644
+ console . log ( `Members: ${ JSON . stringify ( metadata . members , null , 5 ) } ` )
1645
+ console . log ( `challengeResources: ${ JSON . stringify ( challengeResources , null , 5 ) } ` )
1644
1646
const isDesignChallenge = challenge . trackId === DES_TRACK_ID
1645
1647
const isDevChallenge = challenge . trackId === DEV_TRACK_ID
1646
1648
const isMM = challenge . typeId === MARATHON_TYPE_ID
@@ -1660,6 +1662,10 @@ class ChallengeEditor extends Component {
1660
1662
const challengeForm = isNew
1661
1663
? (
1662
1664
< form name = 'challenge-new-form' noValidate autoComplete = 'off' onSubmit = { this . createChallengeHandler } >
1665
+ < div className = { styles . newPlatformWarning } >
1666
+ < span className = { styles . warningHeader } > Please use the new platform</ span > < br />
1667
+ < span > If you are launching a challenge that is not a Marathon Match or Innovation Challenge, please use the new app platform < a href = 'https://app.topcoder.com' > here</ a > </ span >
1668
+ </ div >
1663
1669
< div className = { styles . newFormContainer } >
1664
1670
< TrackField tracks = { metadata . challengeTracks } challenge = { challenge } onUpdateOthers = { this . onUpdateOthers } />
1665
1671
< TypeField types = { filteredTypes } onUpdateSelect = { this . onUpdateSelect } challenge = { challenge } />
You can’t perform that action at this time.
0 commit comments