mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
[settings] redesigned the 'heading' bar; fixup for the side nav; impr… (#6250)
* [settings] redesigned the 'heading' bar; fixup for the side nav; improved UI for content headings * [settings] resigned it (the top bar, the side panel; the code frame)
This commit is contained in:
@@ -13,10 +13,11 @@ const propTypes = {
|
||||
path: PropTypes.string,
|
||||
repoName: PropTypes.string,
|
||||
isLibView: PropTypes.bool,
|
||||
onSearchedClick: PropTypes.func.isRequired,
|
||||
onSearchedClick: PropTypes.func,
|
||||
searchPlaceholder: PropTypes.string,
|
||||
currentRepoInfo: PropTypes.object,
|
||||
isViewFile: PropTypes.bool,
|
||||
showSearch: PropTypes.bool
|
||||
};
|
||||
|
||||
class CommonToolbar extends React.Component {
|
||||
@@ -62,9 +63,10 @@ class CommonToolbar extends React.Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { showSearch = true } = this.props;
|
||||
return (
|
||||
<div className="common-toolbar">
|
||||
{this.renderSearch()}
|
||||
{showSearch && this.renderSearch()}
|
||||
<Notification />
|
||||
<Account />
|
||||
{showLogoutIcon && (<Logout />)}
|
||||
|
Reference in New Issue
Block a user