|
|
@@ -1,7 +1,7 @@
|
|
|
import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
-import Modal from 'react-bootstrap/es/Modal';
|
|
|
+import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
|
|
|
|
|
import { createSubscribedElement } from '../../../UnstatedUtils';
|
|
|
|
|
|
@@ -20,13 +20,13 @@ class ErrorViewer extends React.Component {
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
- <Modal show={this.props.isOpen} onHide={this.props.onClose}>
|
|
|
- <Modal.Header closeButton className="bg-danger">
|
|
|
- <Modal.Title className="text-white">Errors</Modal.Title>
|
|
|
- </Modal.Header>
|
|
|
- <Modal.Body>
|
|
|
+ <Modal isOpen={this.props.isOpen} toggle={this.props.onClose}>
|
|
|
+ <ModalHeader toggle={this.props.onClose} className="bg-danger text-white">
|
|
|
+ Errors
|
|
|
+ </ModalHeader>
|
|
|
+ <ModalBody>
|
|
|
<textarea className="form-control" rows="8" readOnly wrap="off" defaultValue={value}></textarea>
|
|
|
- </Modal.Body>
|
|
|
+ </ModalBody>
|
|
|
</Modal>
|
|
|
);
|
|
|
}
|