Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

minor fixes

kacherfa9124381c1f
diff --git a/frontend/src/components/CodeMirror.tsx b/frontend/src/components/CodeMirror.tsx
index 6043fca5..21008bc9 100644
--- a/frontend/src/components/CodeMirror.tsx
+++ b/frontend/src/components/CodeMirror.tsx
@@ -1,9 +1,7 @@
import { useRef, useEffect } from "react";
import { EditorState } from "@codemirror/state";
import { EditorView, keymap, lineNumbers } from "@codemirror/view";
-import { espresso } from "thememirror";
-import { cobalt } from "thememirror";
-
+import { espresso, cobalt } from "thememirror";
import {
defaultKeymap,
history,
@@ -28,7 +26,6 @@ function CodeMirror({ code, editorTheme }: Props) {
if (editorTheme === "espresso") {
selectedTheme = espresso;
}
-
view.current = new EditorView({
state: EditorState.create({
doc: code,
@@ -71,4 +68,4 @@ function CodeMirror({ code, editorTheme }: Props) {
);
}
-export default CodeMirror;
\ No newline at end of file
+export default CodeMirror;