blob: ae72adf2e62e29cd0b116ffce8a81e3df0629109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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 (
<div className="">
<div className="checklist-content">
<div className="checklist-table">
{sections.map(section => {
if (currentSection !== "all" || section.index !== currentSection) return
return (
<div key={section.index} />
)
})}
</div>
</div>
</div>
)
}
}
const mapStateToProps = state => ({
sections: state.viewer.sections,
})
export default connect(mapStateToProps)(ChecklistContent)
|