diff --git a/src/components/Header.js b/src/components/Header.js index 9e9c83fa7a2..c32212e83c4 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -214,7 +214,7 @@ class Header extends React.Component { `}
- + ); } diff --git a/src/components/TopBar.js b/src/components/TopBar.js index 12ed4bb503f..c4bbbc3357e 100644 --- a/src/components/TopBar.js +++ b/src/components/TopBar.js @@ -10,7 +10,12 @@ const logo = '/static/images/opencollective-icon.svg'; class TopBar extends React.Component { static propTypes = { - LoggedInUser: PropTypes.object + LoggedInUser: PropTypes.object.isRequired, + showSearch: PropTypes.bool, + } + + static defaultProps = { + showSearch: true, } constructor(props) { @@ -58,13 +63,12 @@ class TopBar extends React.Component { } render() { - const { className, LoggedInUser, intl } = this.props; + const { className, LoggedInUser, intl, showSearch } = this.props; return (
Open Collective logo + + {showSearch && ( +
+ +
+ )} +
  • diff --git a/src/pages/search.js b/src/pages/search.js index 673ec89c1c2..60059ed7a6d 100644 --- a/src/pages/search.js +++ b/src/pages/search.js @@ -133,6 +133,7 @@ class SearchPage extends React.Component { title="Search" className={loadingUserLogin ? 'loading' : ''} LoggedInUser={LoggedInUser} + showSearch={false} />