Skip to content

Commit

Permalink
Fix typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snowNnik committed Nov 7, 2024
1 parent ffa80d9 commit 0c6e700
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useState, useEffect, useRef } from 'react';
import { Ace } from 'ace-builds';
import AceEditor from 'react-ace';
import 'ace-builds/src-noconflict/mode-python';
// import 'ace-builds/src-noconflict/snippets-python';
Expand Down Expand Up @@ -130,7 +129,7 @@ export default function Editor({
}) {
const [opmode, setOpmode] = useState('auto');
const [fontSize, setFontSize] = useState(12);
const editorRef = useRef(null as Ace.Editor | null);
const editorRef = useRef(null as AceEditor | null);

const zoomEditor = (increase: boolean) => {
setFontSize((old) => old + (increase ? 1 : -1));
Expand Down

0 comments on commit 0c6e700

Please sign in to comment.