1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

Optimized wiki code (#2566)

* optimized path component

* abstract component

* repair copy bug

* move copy&move&download to list-item

* add modal portal
This commit is contained in:
杨顺强
2018-11-27 14:47:19 +08:00
committed by Daniel Pan
parent 30fa874c9f
commit 5ca5fb9cee
15 changed files with 496 additions and 317 deletions

View File

@@ -0,0 +1,30 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import DirPath from './dir-path';
import DirTool from './dir-tool';
const propTypes = {
repoName: PropTypes.string.isRequired,
currentPath: PropTypes.string.isRequired,
onPathClick: PropTypes.func.isRequired,
};
class CurDirPath extends React.Component {
render() {
return (
<Fragment>
<DirPath
repoName={this.props.repoName}
currentPath={this.props.currentPath}
onPathClick={this.props.onPathClick}
/>
<DirTool currentPath={this.props.currentPath} />
</Fragment>
);
}
}
CurDirPath.propTypes = propTypes;
export default CurDirPath;