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