summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/checklist/checklist.container.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-10 01:41:04 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-10 01:41:04 +0200
commitac03ba9a645066acfda0449a879034531bb6cee3 (patch)
tree6f0ee39bb72f9826e4ac93e4b2522fa6074a0c57 /animism-align/frontend/app/views/viewer/checklist/checklist.container.js
parent3499c61481bd6c5e9081814f959f38c5d0f5c68d (diff)
moving checklist section to credits thingie
Diffstat (limited to 'animism-align/frontend/app/views/viewer/checklist/checklist.container.js')
-rw-r--r--animism-align/frontend/app/views/viewer/checklist/checklist.container.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/animism-align/frontend/app/views/viewer/checklist/checklist.container.js b/animism-align/frontend/app/views/viewer/checklist/checklist.container.js
index 7a8db0e..11310e7 100644
--- a/animism-align/frontend/app/views/viewer/checklist/checklist.container.js
+++ b/animism-align/frontend/app/views/viewer/checklist/checklist.container.js
@@ -9,33 +9,34 @@ import CreditsContent from './credits.content'
class Checklist extends Component {
state = {
- currentSection: 'all',
+ checklistSection: 'all',
}
constructor(props) {
super(props)
this.handleSectionChange = this.handleSectionChange.bind(this)
}
- handleSectionChange(currentSection) {
- this.setState({ currentSection })
+ handleSectionChange(checklistSection) {
+ this.setState({ checklistSection })
}
render() {
- const { currentSection } = this.state
+ const { viewer } = this.props
+ const { checklistSection } = this.state
return (
<div className="checklist">
- (viewer.checklist && (
+ {viewer.checklist && (
<div>
<ChecklistDropdown
- currentSection={currentSection}
+ checklistSection={checklistSection}
onChange={this.handleSectionChange}
/>
<ChecklistContent
- currentSection={currentSection}
+ checklistSection={checklistSection}
/>
</div>
- )
- (viewer.credits && (
+ )}
+ {viewer.credits && (
<CreditsContent />
- ))
+ )}
</div>
)
}