mirror of
https://github.com/mue/mue.git
synced 2026-07-12 10:46:12 +02:00
refactor: codacy and some style changes etc
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
border: none;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:hover,
|
||||
span {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
@@ -53,8 +53,8 @@ export default class QuickLinks extends PureComponent {
|
||||
|
||||
if (nameError || urlError) {
|
||||
return this.setState({
|
||||
nameError: nameError,
|
||||
urlError: urlError
|
||||
nameError,
|
||||
urlError
|
||||
});
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ export default class QuickLinks extends PureComponent {
|
||||
quickLink(item)
|
||||
))}
|
||||
<button className='quicklinks' onClick={this.toggleAdd}>+</button>
|
||||
<span className='quicklinkscontainer' style={{ visibility: this.state.showAddLink, marginTop: marginTop }}>
|
||||
<span className='quicklinkscontainer' style={{ visibility: this.state.showAddLink, marginTop }}>
|
||||
<div className='topbarquicklinks'>
|
||||
<h4>{this.language.new}</h4>
|
||||
<TextareaAutosize rowsmax={1} placeholder={this.language.name} value={this.state.name} onChange={(e) => this.setState({ name: e.target.value })} />
|
||||
|
||||
@@ -108,12 +108,12 @@ export default class Search extends PureComponent {
|
||||
}
|
||||
|
||||
this.setState({
|
||||
url: url,
|
||||
query: query,
|
||||
autocompleteURL: autocompleteURL,
|
||||
autocompleteQuery: autocompleteQuery,
|
||||
autocompleteCallback: autocompleteCallback,
|
||||
microphone: microphone,
|
||||
url,
|
||||
query,
|
||||
autocompleteURL,
|
||||
autocompleteQuery,
|
||||
autocompleteCallback,
|
||||
microphone,
|
||||
currentSearch: info.name
|
||||
});
|
||||
}
|
||||
@@ -147,8 +147,8 @@ export default class Search extends PureComponent {
|
||||
}
|
||||
|
||||
this.setState({
|
||||
url: url,
|
||||
query: query,
|
||||
url,
|
||||
query,
|
||||
currentSearch: name,
|
||||
searchDropdown: 'none'
|
||||
});
|
||||
|
||||
@@ -58,7 +58,7 @@ export default class Clock extends PureComponent {
|
||||
}
|
||||
|
||||
this.setState({
|
||||
time: time,
|
||||
time,
|
||||
ampm: ''
|
||||
});
|
||||
} else {
|
||||
@@ -78,7 +78,7 @@ export default class Clock extends PureComponent {
|
||||
}
|
||||
|
||||
this.setState({
|
||||
time: time,
|
||||
time,
|
||||
ampm: now.getHours() > 11 ? 'PM' : 'AM'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ export default class Weather extends PureComponent {
|
||||
|
||||
this.setState({
|
||||
icon: data.weather[0].icon,
|
||||
temp_text: temp_text,
|
||||
temp_text,
|
||||
weather: {
|
||||
temp: Math.round(temp),
|
||||
description: data.weather[0].description,
|
||||
|
||||
Reference in New Issue
Block a user