[Repertory release notification icon] [Prevent release change when mount is busy] [Initial loading animation]
This commit is contained in:
@@ -7,8 +7,5 @@
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
div.UpgradeIcon {
|
||||
cursor: default;
|
||||
opacity: 0.65;
|
||||
}
|
||||
@@ -1,10 +1,15 @@
|
||||
import React from 'react';
|
||||
import CSSModules from 'react-css-modules';
|
||||
import styles from './UpgradeIcon.css';
|
||||
import availableImage from '../../assets/images/upgrade_available.png';
|
||||
import availableImage from '../../assets/images/release_available.png';
|
||||
|
||||
export default CSSModules((props) => {
|
||||
let style;
|
||||
if (props.release) {
|
||||
style = {float: 'right', marginRight: '5%', cursor: 'default'};
|
||||
}
|
||||
|
||||
return props.available ?
|
||||
<img alt='' styleName='UpgradeIcon' src={availableImage} onClick={props.clicked}/> :
|
||||
<div styleName='UpgradeIcon'/> ;
|
||||
<img alt='' style={style} styleName='UpgradeIcon' src={availableImage} onClick={props.clicked}/> :
|
||||
null;
|
||||
}, styles, {allowMultiple: true});
|
||||
Reference in New Issue
Block a user