소스 검색

clean code

reiji-h 2 년 전
부모
커밋
2abd5bce15
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/editor/src/components/CodeMirrorEditorMain.tsx

+ 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 { keymap, scrollPastEnd } from '@codemirror/view';
@@ -27,7 +27,7 @@ type Props = CodeMirrorEditorProps & {
 export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
   const {
     user, pageId, initialValue,
-    onSave, onOpenEditor, onEditorsUpdated, ...otherProps
+    onSave, onEditorsUpdated, ...otherProps
   } = props;
 
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(GlobalCodeMirrorEditorKey.MAIN);