ソースを参照

fix lint errors

Yuki Takei 5 年 前
コミット
ab7fc1ed63

+ 1 - 1
src/client/js/components/Navbar/DrawerToggler.jsx

@@ -12,7 +12,7 @@ const DrawerToggler = (props) => {
 
   const clickHandler = useCallback(() => {
     navigationContainer.toggleDrawer();
-  }, []);
+  }, [navigationContainer]);
 
   const iconClass = props.iconClass || 'icon-menu';
 

+ 1 - 1
src/client/js/components/Navbar/GrowiSubNavigationSwitcher.jsx

@@ -46,7 +46,7 @@ const GrowiSubNavigationSwitcher = (props) => {
     return () => {
       window.removeEventListener('resize', resizeHandler);
     };
-  }, []);
+  }, [resetWidth]);
 
   const stickyChangeHandler = useCallback((event) => {
     logger.debug('StickyEvents.CHANGE detected');

+ 1 - 1
src/server/service/file-uploader/local.js

@@ -98,7 +98,7 @@ module.exports = function(crowi) {
    */
   lib.canRespond = () => {
     // Check whether to use internal redirect of nginx or Apache.
-    return process.env.FILE_UPLOAD == 'local' && lib.configManager.getConfig('crowi', 'fileUpload:local:useInternalRedirect');
+    return process.env.FILE_UPLOAD === 'local' && lib.configManager.getConfig('crowi', 'fileUpload:local:useInternalRedirect');
   };
 
   /**

+ 1 - 0
src/server/service/file-uploader/uploader.js

@@ -69,6 +69,7 @@ class Uploader {
   respond(res, attachment) {
     throw new Error('Implement this');
   }
+
 }
 
 module.exports = Uploader;