diff --git a/frontend/src/components/dialog/insert-file-dialog.js b/frontend/src/components/dialog/insert-file-dialog.js
index 6b0bc2b18f..c7c473a521 100644
--- a/frontend/src/components/dialog/insert-file-dialog.js
+++ b/frontend/src/components/dialog/insert-file-dialog.js
@@ -4,13 +4,11 @@ import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Alert } from 'react
import { gettext } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import FileChooser from '../file-chooser/file-chooser';
-import '../../css/dirent-detail.css';
const propTypes = {
repoID: PropTypes.string.isRequired,
filePath: PropTypes.string.isRequired,
toggleCancel: PropTypes.func.isRequired,
- dirent: PropTypes.object.isRequired,
getInsertLink: PropTypes.func.isRequired,
};
@@ -52,14 +50,11 @@ class InsertFileDialog extends React.Component {
}
render() {
- let subtitle = gettext('Insert file in {placeholder}');
- subtitle = subtitle.replace('{placeholder}', '' + Utils.HTMLescape(this.props.dirent.name) + '');
const toggle = this.props.toggleCancel;
return (
-
+
{gettext('Select File')}
-
- {this.state.selectedPath ?
- : }
+ {this.state.selectedPath ?
+ : }
);
diff --git a/frontend/src/markdown-editor.js b/frontend/src/markdown-editor.js
index b7d0571ea2..c3107668fa 100644
--- a/frontend/src/markdown-editor.js
+++ b/frontend/src/markdown-editor.js
@@ -1140,7 +1140,6 @@ class MarkdownEditor extends React.Component {
repoID={repoID}
filePath={filePath}
toggleCancel={this.toggleCancel}
- dirent={this.state.fileInfo}
getInsertLink={this.getInsertLink}
/>