Ver Fonte

clean code

reiji-h há 2 anos atrás
pai
commit
2abd5bce15

+ 2 - 2
packages/editor/src/components/CodeMirrorEditorMain.tsx

@@ -1,4 +1,4 @@
-useEffect } from 'react';
+import { useEffect } from 'react';
 
 
 import { type Extension } from '@codemirror/state';
 import { type Extension } from '@codemirror/state';
 import { keymap, scrollPastEnd } from '@codemirror/view';
 import { keymap, scrollPastEnd } from '@codemirror/view';
@@ -27,7 +27,7 @@ type Props = CodeMirrorEditorProps & {
 export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
 export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
   const {
   const {
     user, pageId, initialValue,
     user, pageId, initialValue,
-    onSave, onOpenEditor, onEditorsUpdated, ...otherProps
+    onSave, onEditorsUpdated, ...otherProps
   } = props;
   } = props;
 
 
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(GlobalCodeMirrorEditorKey.MAIN);
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(GlobalCodeMirrorEditorKey.MAIN);