1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00
Files
seahub/frontend/src/components/cur-dir-path/index.js
杨顺强 7502ce83df Wiki mode improve (#3100)
* repair internal link bug

* add tags for path

* add share&editTag feature

* add related-file for column-mode

* repair edit tag bug

* update implement logic
2019-03-15 10:10:24 +08:00

49 lines
1.4 KiB
JavaScript

import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
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,
onTabNavClick: PropTypes.func,
pathPrefix: PropTypes.array,
isViewFile: PropTypes.bool,
updateUsedRepoTags: PropTypes.func.isRequired,
fileTags: PropTypes.array.isRequired,
};
class CurDirPath extends React.Component {
render() {
return (
<Fragment>
<DirPath
repoName={this.props.repoName}
pathPrefix={this.props.pathPrefix}
currentPath={this.props.currentPath}
onPathClick={this.props.onPathClick}
onTabNavClick={this.props.onTabNavClick}
repoID={this.props.repoID}
isViewFile={this.props.isViewFile}
fileTags={this.props.fileTags}
/>
<DirTool
repoID={this.props.repoID}
repoName={this.props.repoName}
permission={this.props.permission}
currentPath={this.props.currentPath}
updateUsedRepoTags={this.props.updateUsedRepoTags}
/>
</Fragment>
);
}
}
CurDirPath.propTypes = propTypes;
export default CurDirPath;