benfluleck/HelloBooks

View on GitHub
client/src/app/components/container/LandingPage.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import LandingPage from '../presentation/LandingPage';

LandingPage.PropTypes = {
  isAuthenticated: PropTypes.bool.isRequired
};

const mapStateToProps = state => ({
  isAuthenticated: !!state.userReducer.isAuthenticated
});

export default connect(mapStateToProps)(LandingPage);