mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
remove markdown viewer dialog (#7052)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import DirColumnNav from './dir-column-nav';
|
||||
import MarkdownViewerDialog from './markdown-viewer-dialog';
|
||||
import DirListView from './dir-list-view';
|
||||
import DirGridView from './dir-grid-view';
|
||||
import { SIDE_PANEL_FOLDED_WIDTH } from '../../constants';
|
||||
@@ -43,7 +42,6 @@ const propTypes = {
|
||||
lastModified: PropTypes.string,
|
||||
latestContributor: PropTypes.string,
|
||||
onLinkClick: PropTypes.func.isRequired,
|
||||
onCloseMarkdownViewDialog: PropTypes.func,
|
||||
// repo content
|
||||
isRepoInfoBarShow: PropTypes.bool.isRequired,
|
||||
usedRepoTags: PropTypes.array.isRequired,
|
||||
@@ -288,20 +286,6 @@ class DirColumnView extends React.Component {
|
||||
eventBus={this.props.eventBus}
|
||||
/>
|
||||
}
|
||||
{this.props.isViewFile &&
|
||||
<MarkdownViewerDialog
|
||||
repoID={this.props.repoID}
|
||||
filePath={this.props.getMarkDownFilePath()}
|
||||
fileName={this.props.getMarkDownFileName()}
|
||||
openMarkdownFile={this.props.openMarkdownFile}
|
||||
isFileLoading={this.props.isFileLoading}
|
||||
content={this.props.content}
|
||||
lastModified={this.props.lastModified}
|
||||
latestContributor={this.props.latestContributor}
|
||||
onLinkClick={this.props.onLinkClick}
|
||||
onCloseMarkdownViewDialog={this.props.onCloseMarkdownViewDialog}
|
||||
/>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user