Updated prettierrc

This commit is contained in:
2021-03-11 18:15:08 -06:00
parent c8b5d2351e
commit 468bdfa632
29 changed files with 131 additions and 188 deletions

View File

@@ -163,7 +163,7 @@ class Configuration extends IPCContainer {
});
};
onGetConfigReply = (event, arg) => {
onGetConfigReply = (_, arg) => {
if (arg.data.Success) {
const list = this.createItemList(arg.data.Config, this.state.Template);
const itemListCopy = JSON.parse(JSON.stringify(list.ItemList));
@@ -207,7 +207,7 @@ class Configuration extends IPCContainer {
}
};
onGetConfigTemplateReply = (event, arg) => {
onGetConfigTemplateReply = (_, arg) => {
if (arg.data.Success) {
this.setState(
{
@@ -318,16 +318,14 @@ class Configuration extends IPCContainer {
<td align="center" width="50%">
<Button
clicked={this.saveAndClose}
disabled={this.state.Saving}
>
disabled={this.state.Saving}>
Yes
</Button>
</td>
<td align="center" width="50%">
<Button
clicked={this.props.hideConfiguration}
disabled={this.state.Saving}
>
disabled={this.state.Saving}>
No
</Button>
</td>
@@ -340,6 +338,12 @@ class Configuration extends IPCContainer {
}
let autoFocus = true;
const getAutoFocus = () => {
return autoFocus;
};
const setAutoFocus = (value) => {
autoFocus = value;
};
let objectItems = [];
for (const key of Object.keys(this.state.ObjectLookup)) {
@@ -348,8 +352,8 @@ class Configuration extends IPCContainer {
<h2>{key}</h2>
<div>
{this.state.ObjectLookup[key].map((k, i) => {
const shouldFocus = autoFocus;
autoFocus = false;
const shouldFocus = getAutoFocus();
setAutoFocus(false);
return !k.advanced ||
(this.state.ShowAdvanced && k.advanced && !k.remote) ||
this.showRemoteConfigItem(k, this.state.ObjectLookup[key]) ? (
@@ -407,13 +411,11 @@ class Configuration extends IPCContainer {
marginTop: '-4px',
boxSizing: 'border-box',
display: 'block',
}}
>
}}>
<a
href={'#'}
onClick={this.checkSaveRequired}
style={{ cursor: 'pointer' }}
>
style={{ cursor: 'pointer' }}>
X
</a>
</div>
@@ -434,8 +436,7 @@ class Configuration extends IPCContainer {
clicked={() => {
this.props.displayPinnedManager(true);
return false;
}}
>
}}>
&nbsp;Pinned File Manager...&nbsp;
</Button>
) : null}