1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +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

@@ -18,20 +18,20 @@ const propTypes = {
class CommonToolbar extends React.Component {
render() {
let searchPlaceholder = this.props.searchPlaceholder || gettext('Search Files');
const { repoID, repoName } = this.props;
return (
<div className="common-toolbar">
{isPro && (
<Search
repoID={this.props.repoID}
placeholder={searchPlaceholder}
repoID={repoID}
placeholder={this.props.searchPlaceholder || gettext('Search files')}
onSearchedClick={this.props.onSearchedClick}
/>
)}
{this.props.isLibView && !isPro &&
<SearchByName
repoID={this.props.repoID}
repoName={this.props.repoName}
repoID={repoID}
repoName={repoName}
/>
}
<Notification />