fix: console error and codacy

This commit is contained in:
David Ralph
2021-08-27 18:27:11 +01:00
parent feb7e1d93c
commit abe70617d8
19 changed files with 25 additions and 23 deletions

View File

@@ -133,7 +133,7 @@ export default class Create extends PureComponent {
type: this.state.addonMetadata.type
}
});
}
};
const writeDescription = (
<>

View File

@@ -175,7 +175,7 @@ export default class Marketplace extends PureComponent {
const openFeatured = () => {
window.stats.postEvent('marketplace', 'Featured clicked');
window.open(this.state.featured.buttonLink);
}
};
return (
<div className='featured' style={{ backgroundColor: this.state.featured.colour }}>

View File

@@ -40,6 +40,7 @@
.addToMue {
@extend %storebutton;
float: right;
margin-top: -10px;
}

View File

@@ -177,7 +177,9 @@ p.description {
}
}
#item>img, .updateimage, .updatechangelog>p>img {
#item>img,
.updateimage,
.updatechangelog>p>img {
border-radius: 12px;
height: 200px;
width: auto;

View File

@@ -91,7 +91,7 @@ export default class WelcomeSections extends PureComponent {
// cancel welcome image timer if not on welcome tab
componentDidUpdate() {
if (this.props.currentTab !== 0) {
if (this.props.currentTab !== 0) {
if (this.timeout) {
clearTimeout(this.timeout);
this.timeout = null;

View File

@@ -67,7 +67,7 @@
background: #8395a7;
height: 4px;
margin: 10px;
transition: .2s ease;
transition: 0.2s ease;
cursor: pointer;
border-radius: 15px;
}