mirror of
https://github.com/mue/mue.git
synced 2026-07-10 22:14:39 +02:00
fix: console error and codacy
This commit is contained in:
@@ -91,7 +91,7 @@ export default class Background extends PureComponent {
|
||||
camera: favourited.camera
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
switch (localStorage.getItem('backgroundType')) {
|
||||
case 'api':
|
||||
|
||||
@@ -86,7 +86,7 @@ export default function PhotoInformation(props) {
|
||||
element.style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='photoInformation'>
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
.searchDropdownList {
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
&:hover {
|
||||
color: rgb(211, 211, 211);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user