From 3017b632999bc059a2246ee5a041b12d2fdf0591 Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Sat, 20 Apr 2019 15:55:03 -0700 Subject: [PATCH] v1.3.3 (#570) * bump to v1.3.3 * Sticky navbar (#569) * collapse toggler on click * sticky navbar * remove custom scrollbar styling to fix padding issues with container --- app/components/header/Header.js | 21 +++++++++++++++------ app/package.json | 2 +- app/styles/utilities/container.scss | 15 --------------- package.json | 2 +- 4 files changed, 17 insertions(+), 23 deletions(-) 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 ( - +