1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00
Files
seahub/frontend/src/pages/lib-content-view/lib-content-toolbar.js
Michael An c41407f783 12.0 change app structure (#6335)
* 01 change app structure

* 02 change setting page

* 03 optimize header style

* 04 change app mobile side panel logo
2024-07-11 17:45:30 +08:00

41 lines
1.2 KiB
JavaScript

import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import CommonToolbar from '../../components/toolbar/common-toolbar';
const propTypes = {
onSideNavMenuClick: PropTypes.func.isRequired,
repoID: PropTypes.string.isRequired,
repoName: PropTypes.string.isRequired,
onSearchedClick: PropTypes.func.isRequired,
currentRepoInfo: PropTypes.object,
path: PropTypes.string,
isViewFile: PropTypes.bool,
};
class LibContentToolbar extends React.Component {
render() {
return (
<Fragment>
<div className="cur-view-toolbar">
<span className="sf2-icon-menu hidden-md-up d-md-none side-nav-toggle" title={gettext('Side Nav Menu')} onClick={this.props.onSideNavMenuClick}></span>
</div>
<CommonToolbar
isLibView={true}
path={this.props.path}
isViewFile={this.props.isViewFile}
repoID={this.props.repoID}
repoName={this.props.repoName}
currentRepoInfo={this.props.currentRepoInfo}
onSearchedClick={this.props.onSearchedClick}
/>
</Fragment>
);
}
}
LibContentToolbar.propTypes = propTypes;
export default LibContentToolbar;