mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 04:10:47 +00:00
fix-bug
This commit is contained in:
@@ -9,7 +9,7 @@ const viewerPropTypes = {
|
||||
lastModified: PropTypes.string,
|
||||
latestContributor: PropTypes.string,
|
||||
markdownContent: PropTypes.string,
|
||||
onContentRendered: PropTypes.func,
|
||||
onContentRendered: PropTypes.func.isRequired,
|
||||
activeTitleIndex: PropTypes.number
|
||||
};
|
||||
|
||||
|
@@ -46,6 +46,10 @@ class MainPanel extends Component {
|
||||
this.props.onMainNavBarClick(e.target.dataset.path);
|
||||
}
|
||||
|
||||
onContentRendered = (markdownViewer) => {
|
||||
//
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
let filePathList = this.props.filePath.split('/');
|
||||
@@ -107,6 +111,7 @@ class MainPanel extends Component {
|
||||
lastModified = {this.props.lastModified}
|
||||
onLinkClick={this.props.onLinkClick}
|
||||
isFileLoading={this.props.isFileLoading}
|
||||
onContentRendered={this.onContentRendered}
|
||||
/>
|
||||
}
|
||||
{ !this.props.isViewFileState &&
|
||||
|
Reference in New Issue
Block a user