Skip to content

Commit

Permalink
Update appPresenter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisng93 authored Jul 8, 2016
1 parent 639e103 commit 7ff4ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/appPresenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 7ff4ec9

Please sign in to comment.