jam411 hace 3 años
padre
commit
68d7542a58
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      packages/app/src/components/PageComment/CommentEditor.tsx

+ 5 - 5
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -23,7 +23,7 @@ import { useIsMobile } from '~/stores/ui';
 
 
 import { CustomNavTab } from '../CustomNavigation/CustomNav';
 import { CustomNavTab } from '../CustomNavigation/CustomNav';
 import NotAvailableForGuest from '../NotAvailableForGuest';
 import NotAvailableForGuest from '../NotAvailableForGuest';
-import Editor from '../PageEditor/Editor';
+// import Editor from '../PageEditor/Editor';
 import { SlackNotification } from '../SlackNotification';
 import { SlackNotification } from '../SlackNotification';
 
 
 import CommentPreview from './CommentPreview';
 import CommentPreview from './CommentPreview';
@@ -286,8 +286,8 @@ const CommentEditor = (props: PropsType): JSX.Element => {
       </Button>
       </Button>
     );
     );
 
 
-    // TODO: typescriptize Editor
-    const AnyEditor = Editor as any;
+    // // TODO: typescriptize Editor
+    // const AnyEditor = Editor as any;
 
 
     return (
     return (
       <>
       <>
@@ -295,7 +295,7 @@ const CommentEditor = (props: PropsType): JSX.Element => {
           <CustomNavTab activeTab={activeTab} navTabMapping={navTabMapping} onNavSelected={handleSelect} hideBorderBottom />
           <CustomNavTab activeTab={activeTab} navTabMapping={navTabMapping} onNavSelected={handleSelect} hideBorderBottom />
           <TabContent activeTab={activeTab}>
           <TabContent activeTab={activeTab}>
             <TabPane tabId="comment_editor">
             <TabPane tabId="comment_editor">
-              <AnyEditor
+              {/* <AnyEditor
                 ref={editorRef}
                 ref={editorRef}
                 value={comment}
                 value={comment}
                 lineNumbers={false}
                 lineNumbers={false}
@@ -306,7 +306,7 @@ const CommentEditor = (props: PropsType): JSX.Element => {
                 onUpload={uploadHandler}
                 onUpload={uploadHandler}
                 onCtrlEnter={ctrlEnterHandler}
                 onCtrlEnter={ctrlEnterHandler}
                 isComment
                 isComment
-              />
+              /> */}
               {/*
               {/*
                 Note: <OptionsSelector /> is not optimized for ComentEditor in terms of responsive design.
                 Note: <OptionsSelector /> is not optimized for ComentEditor in terms of responsive design.
                 See a review comment in https://github.com/weseek/growi/pull/3473
                 See a review comment in https://github.com/weseek/growi/pull/3473