1
0
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:
llj
2024-06-25 21:48:57 +08:00
committed by GitHub
parent a5edeafb74
commit 26bdd0decd
7 changed files with 116 additions and 120 deletions

View File

@@ -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 />)}