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 = ({
3737 assignedMemberDetails,
3838 enableEdit,
3939 onLaunchChallenge,
40- onCloseTask } ) => {
40+ onCloseTask,
41+ location } ) => {
42+ const params = new URLSearchParams ( location . search )
4143 const selectedType = _ . find ( metadata . challengeTypes , { id : challenge . typeId } )
4244 const challengeTrack = _ . find ( metadata . challengeTracks , { id : challenge . trackId } )
4345
@@ -186,6 +188,16 @@ const ChallengeView = ({
186188 < span > < span className = { styles . fieldTitle } > Groups:</ span > { groups } </ span >
187189 </ div >
188190 </ 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+ ) }
189201 </ >
190202 ) }
191203 {
@@ -271,7 +283,8 @@ ChallengeView.propTypes = {
271283 assignedMemberDetails : PropTypes . shape ( ) ,
272284 enableEdit : PropTypes . bool ,
273285 onLaunchChallenge : PropTypes . func ,
274- onCloseTask : PropTypes . func
286+ onCloseTask : PropTypes . func ,
287+ location : PropTypes . object
275288}
276289
277290export default withRouter ( ChallengeView )
Original file line number Diff line number Diff line change @@ -1125,6 +1125,8 @@ class ChallengeEditor extends Component {
11251125 }
11261126
11271127 render ( ) {
1128+ const params = new URLSearchParams ( this . props . location . search )
1129+
11281130 const {
11291131 isLaunch,
11301132 isConfirm,
@@ -1404,6 +1406,16 @@ class ChallengeEditor extends Component {
14041406 { /* remove terms field and use default term */ }
14051407 { false && ( < TermsField terms = { metadata . challengeTerms } challenge = { challenge } onUpdateMultiSelect = { this . onUpdateMultiSelect } /> ) }
14061408 < 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+ ) }
14071419 </ React . Fragment >
14081420 ) }
14091421 { ! isTask && (
@@ -1535,7 +1547,8 @@ ChallengeEditor.propTypes = {
15351547 replaceResourceInRole : PropTypes . func ,
15361548 partiallyUpdateChallengeDetails : PropTypes . func . isRequired ,
15371549 deleteChallenge : PropTypes . func . isRequired ,
1538- loggedInUser : PropTypes . shape ( ) . isRequired
1550+ loggedInUser : PropTypes . shape ( ) . isRequired ,
1551+ location : PropTypes . object
15391552}
15401553
15411554export default withRouter ( ChallengeEditor )
You can’t perform that action at this time.
0 commit comments