variable naming consistency
This commit is contained in:
@@ -14,10 +14,10 @@ export default function EditorTextArea({ code, setCode, language, fontSize }) {
|
|||||||
.join('\n');
|
.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastBracketState = useState(null);
|
const autoBracketState = useState(null);
|
||||||
const editorRef = useRef();
|
const editorRef = useRef();
|
||||||
function keydown(e) {
|
function keydown(e) {
|
||||||
handleKeydown(e, editorRef.current, lastBracketState);
|
handleKeydown(e, editorRef.current, autoBracketState);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user