style: codacy

This commit is contained in:
David Ralph
2021-04-16 12:26:56 +01:00
parent fe4d17eff3
commit 1ac6f418bf
11 changed files with 16 additions and 16 deletions

View File

@@ -29,14 +29,14 @@ export default class Added extends React.PureComponent {
};
this.buttons = {
uninstall: <button className='removeFromMue' onClick={() => this.uninstall()}>{window.language.modals.main.marketplace.product.buttons.remove}</button>,
}
};
this.language = window.language.modals.main.addons;
}
toggle(type, data) {
if (type === 'item') {
const installed = JSON.parse(localStorage.getItem('installed'));
const info = installed.find(i => i.name === data);
const info = installed.find((i) => i.name === data);
this.setState({
item: {

View File

@@ -34,7 +34,7 @@ export default class Marketplace extends React.PureComponent {
this.buttons = {
uninstall: <button className='removeFromMue' onClick={() => this.manage('uninstall')}>{window.language.modals.main.marketplace.product.buttons.remove}</button>,
install: <button className='addToMue' onClick={() => this.manage('install')}>{window.language.modals.main.marketplace.product.buttons.addtomue}</button>
}
};
this.language = window.language.modals.main.marketplace;
}

View File

@@ -10,7 +10,7 @@ export default function Sideload() {
const install = (input) => {
MarketplaceFunctions.install(input.type, input);
toast(window.language.toasts.installed);
}
};
return (
<>

View File

@@ -57,7 +57,7 @@ export default class BackgroundSettings extends React.PureComponent {
<Checkbox name='backgroundVideoLoop' text={this.language.sections.background.source.loop_video}/>
<Checkbox name='backgroundVideoMute' text={this.language.sections.background.source.mute_video}/>
</>
)
);
} else {
return null;
}
@@ -65,7 +65,7 @@ export default class BackgroundSettings extends React.PureComponent {
marketplaceType = () => {
if (localStorage.getItem('photo_packs')) {
return <option value='photo_pack'>{window.language.modals.main.navbar.marketplace}</option>
return <option value='photo_pack'>{window.language.modals.main.navbar.marketplace}</option>;
}
}