소스 검색

clean code

kaori 3 년 전
부모
커밋
bf83504360
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      packages/app/src/components/PageEditor/Editor.tsx

+ 0 - 3
packages/app/src/components/PageEditor/Editor.tsx

@@ -65,9 +65,6 @@ const Editor: ForwardRefRenderFunction<IEditorMethods, EditorPropsType> = (props
   const { data: isMobile } = useIsMobile();
   const { data: isMobile } = useIsMobile();
 
 
   const dropzoneRef = useRef<DropzoneRef>(null);
   const dropzoneRef = useRef<DropzoneRef>(null);
-  // Need to typescriptize CodeMirrorEditor to set the generic type
-  // forwardRef should be typed.
-  // const cmEditorRef = useRef<any>(null);
   const cmEditorRef = useRef<AbstractEditor<any>>(null);
   const cmEditorRef = useRef<AbstractEditor<any>>(null);