soumaeda 2 лет назад
Родитель
Сommit
b3bd60605c
1 измененных файлов с 3 добавлено и 8 удалено
  1. 3 8
      apps/app/src/components/Admin/Users/PasswordResetModal.jsx

+ 3 - 8
apps/app/src/components/Admin/Users/PasswordResetModal.jsx

@@ -7,7 +7,7 @@ import {
 } from 'reactstrap';
 } from 'reactstrap';
 
 
 import { apiv3Put } from '~/client/util/apiv3-client';
 import { apiv3Put } from '~/client/util/apiv3-client';
-import { toastSuccess, toastError } from '~/client/util/toastr';
+import { toastError } from '~/client/util/toastr';
 import { useIsMailerSetup } from '~/stores/context';
 import { useIsMailerSetup } from '~/stores/context';
 
 
 
 
@@ -87,7 +87,7 @@ class PasswordResetModal extends React.Component {
   }
   }
 
 
   returnModalFooterBeforeReset() {
   returnModalFooterBeforeReset() {
-    const { t, isMailerSetup } = this.props;
+    const { t } = this.props;
     return (
     return (
       <button type="submit" className="btn btn-danger" onClick={this.resetPassword}>
       <button type="submit" className="btn btn-danger" onClick={this.resetPassword}>
         {t('user_management.reset_password')}
         {t('user_management.reset_password')}
@@ -106,10 +106,6 @@ class PasswordResetModal extends React.Component {
   }
   }
 
 
 
 
-  handleCheckBox() {
-    this.setState({ sendEmail: !this.state.sendEmail });
-  }
-
   render() {
   render() {
     const { t } = this.props;
     const { t } = this.props;
 
 
@@ -132,8 +128,7 @@ class PasswordResetModal extends React.Component {
 
 
 const PasswordResetModalWrapperFC = (props) => {
 const PasswordResetModalWrapperFC = (props) => {
   const { t } = useTranslation('admin');
   const { t } = useTranslation('admin');
-  const { data: isMailerSetup } = useIsMailerSetup();
-  return <PasswordResetModal t={t} isMailerSetup={isMailerSetup ?? false} {...props} />;
+  return <PasswordResetModal t={t} {...props} />;
 };
 };
 
 
 /**
 /**