1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

change search UI (#5676)

* change search UI

* change className
This commit is contained in:
Michael An
2023-10-09 17:32:13 +08:00
committed by GitHub
parent f62cb2753e
commit ec74ae86ab
6 changed files with 35 additions and 22 deletions

View File

@@ -78,9 +78,7 @@ class MainPanel extends Component {
render() {
let { onSearchedClick } = this.props;
let searchPlaceholder = gettext('Search files in this library');
const errMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
const isViewingFile = this.props.pathExist && !this.props.isDataLoading && this.props.isViewFile;
return (
<div className="main-panel wiki-main-panel">
@@ -93,7 +91,7 @@ class MainPanel extends Component {
</div>
<div className="common-toolbar">
{isPro && (
<Search isPublic={true} repoID={repoID} onSearchedClick={onSearchedClick} placeholder={searchPlaceholder}/>
<Search isPublic={true} repoID={repoID} onSearchedClick={onSearchedClick} placeholder={gettext('Search files')}/>
)}
</div>
</Fragment>
@@ -110,7 +108,7 @@ class MainPanel extends Component {
</div>
<div className="common-toolbar">
{isPro && (
<Search isPublic={true} repoID={repoID} onSearchedClick={onSearchedClick} placeholder={searchPlaceholder}/>
<Search isPublic={true} repoID={repoID} onSearchedClick={onSearchedClick} placeholder={gettext('Search files')}/>
)}
<Notification />
<Account />