[Application configuration support] [Fix component unmount leak]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.UpgradeIcon {
|
||||
display: block;
|
||||
margin: 0;
|
||||
margin-right: 2px;
|
||||
padding: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
|
||||
@@ -10,6 +10,10 @@ export default CSSModules((props) => {
|
||||
}
|
||||
|
||||
return props.available ?
|
||||
<img alt='' style={style} styleName='UpgradeIcon' src={availableImage} onClick={props.clicked}/> :
|
||||
<img alt=''
|
||||
onClick={props.clicked}
|
||||
src={availableImage}
|
||||
style={style}
|
||||
styleName='UpgradeIcon'/> :
|
||||
null;
|
||||
}, styles, {allowMultiple: true});
|
||||
Reference in New Issue
Block a user