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

@@ -91,7 +91,7 @@ export default class Background extends PureComponent {
camera: favourited.camera
}
});
}
};
switch (localStorage.getItem('backgroundType')) {
case 'api':

View File

@@ -86,7 +86,7 @@ export default function PhotoInformation(props) {
element.style.display = 'none';
}
}
}
};
return (
<div className='photoInformation'>

View File

@@ -97,7 +97,7 @@ export default class QuickLinks extends PureComponent {
for (const img of images) {
img.style.height = `${0.87 * Number((localStorage.getItem('zoomQuicklinks') || 100) / 100)}em`;
};
}
}
componentDidMount() {

View File

@@ -6,7 +6,7 @@
cursor: initial;
user-select: none;
--shadow-shift: 0.125rem;
--shadow-shift: 0.125rem;
}
@media screen and (min-width: 600px) {
@@ -21,7 +21,7 @@
letter-spacing: 0.5px;
user-select: none;
--shadow-shift: 0.125rem;
--shadow-shift: 0.125rem;
svg {
margin-left: 10px;

View File

@@ -1,4 +1,4 @@
import { PureComponent } from 'react';
import { PureComponent, Fragment } from 'react';
import { Search as SearchIcon, Mic } from '@material-ui/icons';
import Hotkeys from 'react-hot-keys';
@@ -183,10 +183,10 @@ export default class Search extends PureComponent {
}
return (
<>
<Fragment key={engine.name}>
<span className='searchDropdownList' onClick={() => this.setSearch(engine.name)}>{engine.name}</span>
<br/>
</>
</Fragment>
);
})}
{this.state.currentSearch !== customText ? <span className='searchDropdownList' onClick={() => this.setSearch(customText, 'custom')}>{customText}</span> : null}

View File

@@ -59,7 +59,7 @@
.searchDropdownList {
cursor: pointer;
&:hover {
color: rgb(211, 211, 211);
}