1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

Wiki improve (#2894)

This commit is contained in:
杨顺强
2019-01-28 16:48:03 +08:00
committed by Daniel Pan
parent 0f76617b00
commit c53a1f0b3b
21 changed files with 646 additions and 1669 deletions

View File

@@ -3,9 +3,8 @@ import PropTypes from 'prop-types';
import MarkdownViewer from '@seafile/seafile-editor/dist/viewer/markdown-viewer';
const viewerPropTypes = {
onLinkClick: PropTypes.func,
onContentRendered: PropTypes.func.isRequired,
indexContent: PropTypes.string,
indexContent: PropTypes.string.isRequired,
onLinkClick: PropTypes.func.isRequired,
};
class IndexContentViewer extends React.Component {
@@ -15,6 +14,10 @@ class IndexContentViewer extends React.Component {
this.props.onLinkClick(event);
}
onContentRendered = () => {
// todo
}
render() {
return (
<div className="markdown-content">