diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-24 19:56:27 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-24 19:56:27 +0200 |
| commit | 4c7ed7102aa5fdf3245ce1113614fee2d15fbd07 (patch) | |
| tree | 8ea3f0d611c0e9b1f4f2aa1d368ef69a9a029d98 /animism-align/frontend/app/views/viewer/checklist/checklist.content.js | |
| parent | fc4151a6c9d1ce7a29fa6c640a711d4b24e81f0c (diff) | |
checklist dropdown
Diffstat (limited to 'animism-align/frontend/app/views/viewer/checklist/checklist.content.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/checklist/checklist.content.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js new file mode 100644 index 0000000..ae72adf --- /dev/null +++ b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js @@ -0,0 +1,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) |
