stevenfukase 4 лет назад
Родитель
Сommit
44779a6a72

+ 10 - 10
packages/app/src/components/PageEditor/Editor.jsx

@@ -243,10 +243,10 @@ class Editor extends AbstractEditor {
     return (
       <div className="m-0 navbar navbar-default navbar-editor" style={{ minHeight: 'unset' }}>
         <ul className="pl-2 nav nav-navbar">
-          {this.getNavbarItems() != null && this.getNavbarItems().map((item, idx) => {
+          { this.getNavbarItems() != null && this.getNavbarItems().map((item, idx) => {
             // eslint-disable-next-line react/no-array-index-key
             return <li key={`navbarItem-${idx}`}>{item}</li>;
-          })}
+          }) }
         </ul>
       </div>
     );
@@ -306,14 +306,14 @@ class Editor extends AbstractEditor {
             }) => {
               return (
                 <div className={this.getDropzoneClassName(isDragAccept, isDragReject)} {...getRootProps()}>
-                  {this.state.dropzoneActive && this.renderDropzoneOverlay()}
+                  { this.state.dropzoneActive && this.renderDropzoneOverlay() }
 
-                  {this.state.isComponentDidMount && this.renderNavbar()}
+                  { this.state.isComponentDidMount && this.renderNavbar() }
 
                   {/* for PC */}
-                  {!isMobile && (
+                  { !isMobile && (
                     <Subscribe to={[EditorContainer]}>
-                      {editorContainer => (
+                      { editorContainer => (
                         // eslint-disable-next-line arrow-body-style
                         <CodeMirrorEditor
                           ref={(c) => { this.cmEditor = c }}
@@ -333,7 +333,7 @@ class Editor extends AbstractEditor {
                   )}
 
                   {/* for mobile */}
-                  {isMobile && (
+                  { isMobile && (
                     <TextAreaEditor
                       ref={(c) => { this.taEditor = c }}
                       onPasteFiles={this.pasteFilesHandler}
@@ -348,7 +348,7 @@ class Editor extends AbstractEditor {
             }}
           </Dropzone>
 
-          {this.props.isUploadable
+          { this.props.isUploadable
             && (
               <button
                 type="button"
@@ -358,7 +358,7 @@ class Editor extends AbstractEditor {
                 <i className="icon-paper-clip" aria-hidden="true"></i>&nbsp;
                 Attach files
                 <span className="d-none d-sm-inline">
-                  &nbsp;by dragging &amp; dropping,&nbsp;
+                &nbsp;by dragging &amp; dropping,&nbsp;
                   <span className="btn-link">selecting them</span>,&nbsp;
                   or pasting from the clipboard.
                 </span>
@@ -367,7 +367,7 @@ class Editor extends AbstractEditor {
             )
           }
 
-          {this.renderCheatsheetModal()}
+          { this.renderCheatsheetModal() }
 
         </div>
       </>

+ 0 - 1
packages/app/src/components/PageStatusAlert.jsx

@@ -10,7 +10,6 @@ import { withUnstatedContainers } from './UnstatedUtils';
 
 import { ConflictDiffModal } from '~/components/PageEditor/ConflictDiffModal';
 
-
 /**
  *
  * @author Yuki Takei <yuki@weseek.co.jp>