1
0
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:
lian
2023-03-01 16:51:36 +08:00
committed by GitHub
parent bee8dc6fb1
commit 146c79ba44
9 changed files with 257 additions and 27 deletions

View 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;