From 7ff4ec92ea0632b9b74c88cca624a7a30972abb4 Mon Sep 17 00:00:00 2001 From: Chris Ng Date: Thu, 7 Jul 2016 22:29:31 -0700 Subject: [PATCH] Update appPresenter.js --- src/components/App/appPresenter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App/appPresenter.js b/src/components/App/appPresenter.js index 6ed6162..2b1c05c 100644 --- a/src/components/App/appPresenter.js +++ b/src/components/App/appPresenter.js @@ -49,8 +49,8 @@ class App extends Component { render() { const { auth, children, history } = this.props; const { isSticky, isFooter, onFooter } = this; - const authCheck = (auth === 'false'); // disable auth for development purpose; comment this out in production - // const authCheck = (auth === 'true' || localStorage.getItem('auth') === 'true' && this.props.user.length !== 0); // uncomment this in production + // const authCheck = (auth === 'false'); // disable auth for development purpose; comment this out in production + const authCheck = (auth === 'true' || localStorage.getItem('auth') === 'true' && this.props.user.length !== 0); // uncomment this in production const childrenWithProps = Children.map(children, (child) => cloneElement(child, { isSticky })); // passing props to child components const classnames = `${container} ${isSticky}`; // add multiple class names return (