Răsfoiți Sursa

remove unused useTranslation

Kami-jo 3 ani în urmă
părinte
comite
85a74cfd2f

+ 1 - 9
packages/app/src/components/Admin/Security/LdapAuthTestModal.jsx

@@ -1,7 +1,6 @@
 import React from 'react';
 
 import PropTypes from 'prop-types';
-import { useTranslation } from 'react-i18next';
 import {
   Modal,
   ModalHeader,
@@ -64,17 +63,10 @@ class LdapAuthTestModal extends React.Component {
 
 
 LdapAuthTestModal.propTypes = {
-  t: PropTypes.func.isRequired, // i18next
-
   isOpen: PropTypes.bool.isRequired,
   onClose: PropTypes.func.isRequired,
 };
 
-const LdapAuthTestModalWrapperFC = (props) => {
-  const { t } = useTranslation();
-  return <LdapAuthTestModal t={t} {...props} />;
-};
-
-const LdapAuthTestModalWrapper = withUnstatedContainers(LdapAuthTestModalWrapperFC, []);
+const LdapAuthTestModalWrapper = withUnstatedContainers(LdapAuthTestModal, []);
 
 export default LdapAuthTestModalWrapper;

+ 0 - 1
packages/app/src/components/Admin/Users/SortIcons.jsx

@@ -1,7 +1,6 @@
 import React from 'react';
 
 import PropTypes from 'prop-types';
-import { useTranslation } from 'react-i18next';
 
 const SortIcons = (props) => {