Jelajahi Sumber

remove toastr

akira-s 5 tahun lalu
induk
melakukan
b18c1f77ed
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      src/client/js/components/PageEditor/LinkEditModal.jsx

+ 1 - 3
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
 import { Modal, ModalHeader, ModalBody } from 'reactstrap';
 import { Modal, ModalHeader, ModalBody } from 'reactstrap';
 
 
 import Preview from './Preview';
 import Preview from './Preview';
-import { toastError } from '../../util/apiNotification';
 
 
 import AppContainer from '../../services/AppContainer';
 import AppContainer from '../../services/AppContainer';
 import { withUnstatedContainers } from '../UnstatedUtils';
 import { withUnstatedContainers } from '../UnstatedUtils';
@@ -69,8 +68,7 @@ class LinkEditModal extends React.PureComponent {
       });
       });
     }
     }
     catch (err) {
     catch (err) {
-      markdown = err.message;
-      toastError(err);
+      markdown = `<div class="alert alert-warning" role="alert"><strong>${err.message}</strong></div>`;
     }
     }
     this.setState({ markdown });
     this.setState({ markdown });
   }
   }