Browse Source

fix lint errors

kaori 3 years ago
parent
commit
523776cc15

+ 0 - 1
packages/app/src/components/Admin/Security/BasicSecuritySetting.jsx

@@ -24,7 +24,6 @@ const BasicSecurityManagement = (props) => {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminBasicSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/GitHubSecuritySetting.jsx

@@ -25,7 +25,6 @@ function GitHubSecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminGitHubSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/GoogleSecuritySetting.jsx

@@ -24,7 +24,6 @@ function GoogleSecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminGoogleSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/LdapSecuritySetting.jsx

@@ -24,7 +24,6 @@ function LdapSecuritySetting(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminLdapSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/LocalSecuritySetting.jsx

@@ -24,7 +24,6 @@ function LocalSecuritySetting(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminLocalSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/OidcSecuritySetting.jsx

@@ -24,7 +24,6 @@ function OidcSecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminOidcSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/SamlSecuritySetting.jsx

@@ -24,7 +24,6 @@ function SamlSecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminSamlSecurityContainer]);
 

+ 7 - 5
packages/app/src/components/Admin/Security/SamlSecuritySettingContents.jsx

@@ -1,20 +1,20 @@
 /* eslint-disable react/no-danger */
 import React from 'react';
 
-import PropTypes from 'prop-types';
+import { pathUtils } from '@growi/core';
 import { useTranslation } from 'next-i18next';
+import PropTypes from 'prop-types';
 import { Collapse } from 'reactstrap';
 import urljoin from 'url-join';
-import { pathUtils } from '@growi/core';
 
 
 import AdminGeneralSecurityContainer from '~/client/services/AdminGeneralSecurityContainer';
 import AdminSamlSecurityContainer from '~/client/services/AdminSamlSecurityContainer';
 import { toastSuccess, toastError } from '~/client/util/apiNotification';
+import { useSiteUrl } from '~/stores/context';
 
 import { withUnstatedContainers } from '../../UnstatedUtils';
 
-import { useSiteUrl } from '~/stores/context';
 
 class SamlSecurityManagementContents extends React.Component {
 
@@ -42,11 +42,13 @@ class SamlSecurityManagementContents extends React.Component {
   }
 
   render() {
-    const { t, adminGeneralSecurityContainer, adminSamlSecurityContainer, siteUrl } = this.props;
+    const {
+      t, adminGeneralSecurityContainer, adminSamlSecurityContainer, siteUrl,
+    } = this.props;
     const { useOnlyEnvVars } = adminSamlSecurityContainer.state;
     const { isSamlEnabled } = adminGeneralSecurityContainer.state;
 
-    const samlCallBackUrl = urljoin(pathUtils.removeTrailingSlash(siteUrl), '/passport/saml/callback')
+    const samlCallBackUrl = urljoin(pathUtils.removeTrailingSlash(siteUrl), '/passport/saml/callback');
 
     return (
       <React.Fragment>

+ 0 - 1
packages/app/src/components/Admin/Security/SecurityManagement.jsx

@@ -24,7 +24,6 @@ function SecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminGeneralSecurityContainer]);
 

+ 0 - 1
packages/app/src/components/Admin/Security/TwitterSecuritySetting.jsx

@@ -24,7 +24,6 @@ function TwitterSecurityManagement(props) {
     catch (err) {
       const errs = toArrayIfNot(err);
       toastError(errs);
-      logger.error(errs);
     }
   }, [adminTwitterSecurityContainer]);