mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
b9c072e7ac
commit
fe8f1b44db
2 changed files with 5 additions and 5 deletions
|
@ -19,14 +19,14 @@ export default function Editor() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleKeyDown = (e: KeyboardEvent) => {
|
const handleKeyDown = (e: KeyboardEvent) => {
|
||||||
if (e.ctrlKey && e.key === 's') {
|
if (e.ctrlKey && e.key === "s") {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setCode(currentCode);
|
setCode(currentCode);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('keydown', handleKeyDown);
|
window.addEventListener("keydown", handleKeyDown);
|
||||||
return () => window.removeEventListener('keydown', handleKeyDown);
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
||||||
}, [currentCode]);
|
}, [currentCode]);
|
||||||
|
|
||||||
const handleEditorChange = (value: string | undefined) => {
|
const handleEditorChange = (value: string | undefined) => {
|
||||||
|
@ -38,7 +38,7 @@ export default function Editor() {
|
||||||
<div className="editor-header">
|
<div className="editor-header">
|
||||||
<div className="editor-header-title">
|
<div className="editor-header-title">
|
||||||
<h1>CSS Editor</h1>
|
<h1>CSS Editor</h1>
|
||||||
{!updated && <div className="editor-header-status"/>}
|
{!updated && <div className="editor-header-status" />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue