@@ -276,7 +276,7 @@ class ChallengeCard extends React.Component {
276276
277277 render ( ) {
278278 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
280280 const { phaseMessage, endTime } = getPhaseInfo ( challenge )
281281 const deleteMessage = isCheckChalengePermission
282282 ? 'Checking permissions...'
@@ -313,7 +313,7 @@ class ChallengeCard extends React.Component {
313313 />
314314 )
315315 }
316- { isLaunch && isConfirm && (
316+ { isLaunch && isConfirm && (
317317 < AlertModal
318318 title = 'Success'
319319 message = { `Challenge "${ challenge . name } " is activated successfuly` }
@@ -324,7 +324,7 @@ class ChallengeCard extends React.Component {
324324 okLink = { `/projects/${ challenge . projectId } /challenges/${ challenge . id } /view` }
325325 onClose = { this . resetModal }
326326 />
327- ) }
327+ ) }
328328
329329 < Link className = { styles . col1 } to = { `/projects/${ challenge . projectId } /challenges/${ challenge . id } /view` } >
330330 < div className = { styles . name } >
@@ -342,7 +342,7 @@ class ChallengeCard extends React.Component {
342342 < span className = 'block light-text' > { endTime } </ span >
343343 </ Link > ) }
344344 < div className = { cn ( styles . col4 , styles . editingContainer ) } >
345- { hoverComponents ( challenge , this . onUpdateLaunch , this . deleteModalLaunch ) }
345+ { ( ! disableHover && hoverComponents ( challenge , this . onUpdateLaunch , this . deleteModalLaunch ) ) }
346346 </ div >
347347 < div className = { cn ( styles . col4 , styles . iconsContainer ) } >
348348 < div className = { styles . faIconContainer } >
@@ -361,7 +361,7 @@ class ChallengeCard extends React.Component {
361361
362362ChallengeCard . defaultPrps = {
363363 shouldShowCurrentPhase : true ,
364- reloadChallengeList : ( ) => { }
364+ reloadChallengeList : ( ) => { }
365365}
366366
367367ChallengeCard . propTypes = {
@@ -370,7 +370,8 @@ ChallengeCard.propTypes = {
370370 reloadChallengeList : PropTypes . func ,
371371 partiallyUpdateChallengeDetails : PropTypes . func . isRequired ,
372372 deleteChallenge : PropTypes . func . isRequired ,
373- isBillingAccountExpired : PropTypes . bool
373+ isBillingAccountExpired : PropTypes . bool ,
374+ disableHover : PropTypes . bool
374375}
375376
376377export default withRouter ( ChallengeCard )
0 commit comments