From 3499c61481bd6c5e9081814f959f38c5d0f5c68d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 9 Oct 2020 16:25:08 +0200 Subject: width of these elements --- .../views/viewer/checklist/checklist.container.js | 29 ++++++++++++++++------ 1 file changed, 21 insertions(+), 8 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 3a441fa..7a8db0e 100644 --- a/animism-align/frontend/app/views/viewer/checklist/checklist.container.js +++ b/animism-align/frontend/app/views/viewer/checklist/checklist.container.js @@ -1,9 +1,11 @@ import React, { Component } from 'react' +import { connect } from 'react-redux' import actions from 'app/actions' import ChecklistDropdown from './checklist.dropdown' import ChecklistContent from './checklist.content' +import CreditsContent from './credits.content' class Checklist extends Component { state = { @@ -20,16 +22,27 @@ class Checklist extends Component { const { currentSection } = this.state return (
- - + (viewer.checklist && ( +
+ + +
+ ) + (viewer.credits && ( + + ))
) } } -export default Checklist +const mapStateToProps = state => ({ + viewer: state.viewer, +}) + +export default connect(mapStateToProps)(Checklist) -- cgit v1.2.3-70-g09d2