mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 17:02:47 +00:00
clean orphan share/upload links (#5383)
* clean orphan share/upload links * update style * [share admin - links] fixup & improvements for 'deleted' tip & 'clean orphan links' --------- Co-authored-by: llj <lingjun.li1@gmail.com>
This commit is contained in:
31
frontend/src/components/toolbar/top-toolbar.js
Normal file
31
frontend/src/components/toolbar/top-toolbar.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import CommonToolbar from './common-toolbar';
|
||||
|
||||
const propTypes = {
|
||||
onShowSidePanel: PropTypes.func.isRequired,
|
||||
onSearchedClick: PropTypes.func.isRequired,
|
||||
searchPlaceholder: PropTypes.string,
|
||||
children: PropTypes.object
|
||||
};
|
||||
|
||||
class TopToolbar extends React.Component {
|
||||
|
||||
render() {
|
||||
const { onShowSidePanel, onSearchedClick } = this.props;
|
||||
return (
|
||||
<div className="main-panel-north border-left-show">
|
||||
<div className="cur-view-toolbar">
|
||||
<span title="Side Nav Menu" onClick={onShowSidePanel} className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none">
|
||||
</span>
|
||||
{this.props.children}
|
||||
</div>
|
||||
<CommonToolbar searchPlaceholder={this.props.searchPlaceholder} onSearchedClick={onSearchedClick} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
TopToolbar.propTypes = propTypes;
|
||||
|
||||
export default TopToolbar;
|
Reference in New Issue
Block a user