diff --git a/app/components/header/Header.js b/app/components/header/Header.js index 716530b3..bbd75f29 100644 --- a/app/components/header/Header.js +++ b/app/components/header/Header.js @@ -27,6 +27,7 @@ export default class Header extends Component { props: Props; state: State = { + collapsed: true, searchQuery: '' }; @@ -51,24 +52,32 @@ export default class Header extends Component { } }; + setCollapse = () => { + this.setState(prevState => ({ + collapsed: !prevState.collapsed + })); + }; + render(): Node { const { activeMode, setActiveMode } = this.props; - const { searchQuery } = this.state; + const { collapsed, searchQuery } = this.state; return ( - +