1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

Optimized module code (#2574)

This commit is contained in:
杨顺强
2018-11-28 12:41:49 +08:00
committed by Daniel Pan
parent 330407be0b
commit 09f32f2312
21 changed files with 120 additions and 38 deletions

View File

@@ -4,7 +4,9 @@ import DirPath from './dir-path';
import DirTool from './dir-tool';
const propTypes = {
repoID: PropTypes.string.isRequired,
repoName: PropTypes.string.isRequired,
permission: PropTypes.bool.isRequired,
currentPath: PropTypes.string.isRequired,
onPathClick: PropTypes.func.isRequired,
};
@@ -19,7 +21,12 @@ class CurDirPath extends React.Component {
currentPath={this.props.currentPath}
onPathClick={this.props.onPathClick}
/>
<DirTool currentPath={this.props.currentPath} />
<DirTool
repoID={this.props.repoID}
repoName={this.props.repoName}
permission={this.props.permission}
currentPath={this.props.currentPath}
/>
</Fragment>
);
}