@@ -276,7 +276,7 @@ class ChallengeCard extends React.Component {
276
276
277
277
render ( ) {
278
278
const { isLaunch, isConfirm, isSaving, isDeleteLaunch, isCheckChalengePermission, hasEditChallengePermission } = this . state
279
- const { challenge, shouldShowCurrentPhase, reloadChallengeList, isBillingAccountExpired } = this . props
279
+ const { challenge, shouldShowCurrentPhase, reloadChallengeList, isBillingAccountExpired, disableHover } = this . props
280
280
const { phaseMessage, endTime } = getPhaseInfo ( challenge )
281
281
const deleteMessage = isCheckChalengePermission
282
282
? 'Checking permissions...'
@@ -313,7 +313,7 @@ class ChallengeCard extends React.Component {
313
313
/>
314
314
)
315
315
}
316
- { isLaunch && isConfirm && (
316
+ { isLaunch && isConfirm && (
317
317
< AlertModal
318
318
title = 'Success'
319
319
message = { `Challenge "${ challenge . name } " is activated successfuly` }
@@ -324,7 +324,7 @@ class ChallengeCard extends React.Component {
324
324
okLink = { `/projects/${ challenge . projectId } /challenges/${ challenge . id } /view` }
325
325
onClose = { this . resetModal }
326
326
/>
327
- ) }
327
+ ) }
328
328
329
329
< Link className = { styles . col1 } to = { `/projects/${ challenge . projectId } /challenges/${ challenge . id } /view` } >
330
330
< div className = { styles . name } >
@@ -342,7 +342,7 @@ class ChallengeCard extends React.Component {
342
342
< span className = 'block light-text' > { endTime } </ span >
343
343
</ Link > ) }
344
344
< div className = { cn ( styles . col4 , styles . editingContainer ) } >
345
- { hoverComponents ( challenge , this . onUpdateLaunch , this . deleteModalLaunch ) }
345
+ { ( ! disableHover && hoverComponents ( challenge , this . onUpdateLaunch , this . deleteModalLaunch ) ) }
346
346
</ div >
347
347
< div className = { cn ( styles . col4 , styles . iconsContainer ) } >
348
348
< div className = { styles . faIconContainer } >
@@ -361,7 +361,7 @@ class ChallengeCard extends React.Component {
361
361
362
362
ChallengeCard . defaultPrps = {
363
363
shouldShowCurrentPhase : true ,
364
- reloadChallengeList : ( ) => { }
364
+ reloadChallengeList : ( ) => { }
365
365
}
366
366
367
367
ChallengeCard . propTypes = {
@@ -370,7 +370,8 @@ ChallengeCard.propTypes = {
370
370
reloadChallengeList : PropTypes . func ,
371
371
partiallyUpdateChallengeDetails : PropTypes . func . isRequired ,
372
372
deleteChallenge : PropTypes . func . isRequired ,
373
- isBillingAccountExpired : PropTypes . bool
373
+ isBillingAccountExpired : PropTypes . bool ,
374
+ disableHover : PropTypes . bool
374
375
}
375
376
376
377
export default withRouter ( ChallengeCard )
0 commit comments