File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
src/components/ChallengeEditor Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ const ChallengeView = ({
37
37
assignedMemberDetails,
38
38
enableEdit,
39
39
onLaunchChallenge,
40
- onCloseTask } ) => {
40
+ onCloseTask,
41
+ location } ) => {
42
+ const params = new URLSearchParams ( location . search )
41
43
const selectedType = _ . find ( metadata . challengeTypes , { id : challenge . typeId } )
42
44
const challengeTrack = _ . find ( metadata . challengeTracks , { id : challenge . trackId } )
43
45
@@ -186,6 +188,16 @@ const ChallengeView = ({
186
188
< span > < span className = { styles . fieldTitle } > Groups:</ span > { groups } </ span >
187
189
</ div >
188
190
</ div >
191
+ { params . get ( 'beta' ) && (
192
+ < div className = { styles . row } >
193
+ < div className = { styles . col } >
194
+ < span >
195
+ < span className = { styles . fieldTitle } > Billing Account Id:</ span >
196
+ { projectDetail . billingAccountId }
197
+ </ span >
198
+ </ div >
199
+ </ div >
200
+ ) }
189
201
</ >
190
202
) }
191
203
{
@@ -271,7 +283,8 @@ ChallengeView.propTypes = {
271
283
assignedMemberDetails : PropTypes . shape ( ) ,
272
284
enableEdit : PropTypes . bool ,
273
285
onLaunchChallenge : PropTypes . func ,
274
- onCloseTask : PropTypes . func
286
+ onCloseTask : PropTypes . func ,
287
+ location : PropTypes . object
275
288
}
276
289
277
290
export default withRouter ( ChallengeView )
Original file line number Diff line number Diff line change @@ -1125,6 +1125,8 @@ class ChallengeEditor extends Component {
1125
1125
}
1126
1126
1127
1127
render ( ) {
1128
+ const params = new URLSearchParams ( this . props . location . search )
1129
+
1128
1130
const {
1129
1131
isLaunch,
1130
1132
isConfirm,
@@ -1404,6 +1406,16 @@ class ChallengeEditor extends Component {
1404
1406
{ /* remove terms field and use default term */ }
1405
1407
{ false && ( < TermsField terms = { metadata . challengeTerms } challenge = { challenge } onUpdateMultiSelect = { this . onUpdateMultiSelect } /> ) }
1406
1408
< GroupsField onUpdateMultiSelect = { this . onUpdateMultiSelect } challenge = { challenge } />
1409
+ { params . get ( 'beta' ) && (
1410
+ < div className = { styles . row } >
1411
+ < div className = { styles . col } >
1412
+ < span >
1413
+ < span className = { styles . fieldTitle } > Billing Account Id:</ span >
1414
+ { projectDetail . billingAccountId }
1415
+ </ span >
1416
+ </ div >
1417
+ </ div >
1418
+ ) }
1407
1419
</ React . Fragment >
1408
1420
) }
1409
1421
{ ! isTask && (
@@ -1535,7 +1547,8 @@ ChallengeEditor.propTypes = {
1535
1547
replaceResourceInRole : PropTypes . func ,
1536
1548
partiallyUpdateChallengeDetails : PropTypes . func . isRequired ,
1537
1549
deleteChallenge : PropTypes . func . isRequired ,
1538
- loggedInUser : PropTypes . shape ( ) . isRequired
1550
+ loggedInUser : PropTypes . shape ( ) . isRequired ,
1551
+ location : PropTypes . object
1539
1552
}
1540
1553
1541
1554
export default withRouter ( ChallengeEditor )
You can’t perform that action at this time.
0 commit comments