import React, { Component } from 'react' import { connect } from 'react-redux' import actions from 'app/actions' class ChecklistContent extends Component { render() { const { sections, currentSection } = this.props return (
{sections.map(section => { if (currentSection !== "all" || section.index !== currentSection) return return (
) })}
) } } const mapStateToProps = state => ({ sections: state.viewer.sections, }) export default connect(mapStateToProps)(ChecklistContent)