From ac03ba9a645066acfda0449a879034531bb6cee3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 10 Oct 2020 01:41:04 +0200 Subject: moving checklist section to credits thingie --- .../views/viewer/checklist/checklist.container.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/checklist/checklist.container.js') 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 (
- (viewer.checklist && ( + {viewer.checklist && (
- ) - (viewer.credits && ( + )} + {viewer.credits && ( - )) + )}
) } -- cgit v1.2.3-70-g09d2