1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

Merge pull request #2635 from haiwen/fix-bug

fix-bug
This commit is contained in:
Daniel Pan
2018-12-12 12:04:00 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -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
};

View File

@@ -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 &&