Fix linter and fix lint issues (#10141)

This commit is contained in:
Nicolas Mowen
2024-02-28 15:23:56 -07:00
committed by GitHub
parent b6ef1e4330
commit 3bf2a496e1
63 changed files with 527 additions and 418 deletions

View File

@@ -38,7 +38,7 @@ function ConfigEditor() {
editorRef.current.getValue(),
{
headers: { "Content-Type": "text/plain" },
}
},
)
.then((response) => {
if (response.status === 200) {
@@ -56,7 +56,7 @@ function ConfigEditor() {
}
});
},
[editorRef]
[editorRef],
);
const handleCopyConfig = useCallback(async () => {
@@ -127,24 +127,20 @@ function ConfigEditor() {
<div className="lg:flex justify-between mr-1">
<Heading as="h2">Config</Heading>
<div>
<Button
size="sm"
className="mx-1"
onClick={(_) => handleCopyConfig()}
>
<Button size="sm" className="mx-1" onClick={() => handleCopyConfig()}>
Copy Config
</Button>
<Button
size="sm"
className="mx-1"
onClick={(_) => onHandleSaveConfig("restart")}
onClick={() => onHandleSaveConfig("restart")}
>
Save & Restart
</Button>
<Button
size="sm"
className="mx-1"
onClick={(_) => onHandleSaveConfig("saveonly")}
onClick={() => onHandleSaveConfig("saveonly")}
>
Save Only
</Button>