From 77847a3474a5ccd64a6f7f98a80a234aca448624 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Tue, 8 Aug 2017 07:20:06 +0300 Subject: [PATCH] #346: remove currently not needed showHeader prop --- src/pages/root/RootPage.js | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/pages/root/RootPage.js b/src/pages/root/RootPage.js index 4fe63d9..45f9784 100644 --- a/src/pages/root/RootPage.js +++ b/src/pages/root/RootPage.js @@ -35,7 +35,6 @@ class RootPage extends Component { user: User, isPopupActive: boolean, onLogoClick: Function, - displayHeader: ?boolean, location: { pathname: string } @@ -56,11 +55,11 @@ class RootPage extends Component { render() { const props = this.props; - const {user, displayHeader} = this.props; + const {user, isPopupActive, onLogoClick} = this.props; const isRegisterPage = props.location.pathname === '/register'; if (document && document.body) { - document.body.style.overflow = props.isPopupActive ? 'hidden' : ''; + document.body.style.overflow = isPopupActive ? 'hidden' : ''; } return ( @@ -69,22 +68,20 @@ class RootPage extends Component {
- {displayHeader === false ? '' : ( -
-
- - - -
- -
+
+
+ + + +
+
- )} +