Просмотр исходного кода

use toastError instead of toastr.error

Shun Miyazawa 4 лет назад
Родитель
Сommit
fb56cddae8
1 измененных файлов с 1 добавлено и 9 удалено
  1. 1 9
      src/client/js/components/Admin/Users/UserInviteModal.jsx

+ 1 - 9
src/client/js/components/Admin/Users/UserInviteModal.jsx

@@ -9,7 +9,6 @@ import {
   Modal, ModalHeader, ModalBody, ModalFooter,
   Modal, ModalHeader, ModalBody, ModalFooter,
 } from 'reactstrap';
 } from 'reactstrap';
 
 
-import * as toastr from 'toastr';
 import { toastSuccess, toastError, toastWarning } from '../../../util/apiNotification';
 import { toastSuccess, toastError, toastWarning } from '../../../util/apiNotification';
 
 
 import { withUnstatedContainers } from '../../UnstatedUtils';
 import { withUnstatedContainers } from '../../UnstatedUtils';
@@ -58,14 +57,7 @@ class UserInviteModal extends React.Component {
         toastWarning(msg);
         toastWarning(msg);
         break;
         break;
       case 'error':
       case 'error':
-        toastr.error(msg, 'Error', {
-          closeButton: true,
-          progressBar: true,
-          newestOnTop: false,
-          showDuration: '100',
-          hideDuration: '100',
-          timeOut: '0',
-        });
+        toastError({ message: msg });
         break;
         break;
     }
     }
   }
   }