variable naming consistency

This commit is contained in:
Luck
2021-05-20 16:19:23 +01:00
parent 148c5b6f28
commit 25ab93c910

View File

@@ -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 (