From 4c7ed7102aa5fdf3245ce1113614fee2d15fbd07 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 24 Jul 2020 19:56:27 +0200 Subject: checklist dropdown --- .../views/viewer/checklist/checklist.container.js | 43 +++++++++++----------- 1 file changed, 21 insertions(+), 22 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 da4d6c3..3a441fa 100644 --- a/animism-align/frontend/app/views/viewer/checklist/checklist.container.js +++ b/animism-align/frontend/app/views/viewer/checklist/checklist.container.js @@ -1,36 +1,35 @@ import React, { Component } from 'react' -// import { Link } from 'react-router-dom' -// import { bindActionCreators } from 'redux' -import { connect } from 'react-redux' import actions from 'app/actions' -// import * as uploadActions from './upload.actions' + +import ChecklistDropdown from './checklist.dropdown' +import ChecklistContent from './checklist.content' class Checklist extends Component { - componentDidMount() { + state = { + currentSection: 'all', + } + constructor(props) { + super(props) + this.handleSectionChange = this.handleSectionChange.bind(this) + } + handleSectionChange(currentSection) { + this.setState({ currentSection }) } render() { - const { } = this.props + const { currentSection } = this.state return (
-
-
-
-
-
-
-
-
+ +
) } } -const mapStateToProps = state => ({ -}) - -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(Checklist) +export default Checklist -- cgit v1.2.3-70-g09d2