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:
@@ -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">
|
||||
|
Reference in New Issue
Block a user