From 9b66e84a72eb1cf0a8caf19450f348f194c21d4f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 11:43:41 +0200 Subject: update all these faders --- app/client/common/paramGroup.component.js | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'app/client/common/paramGroup.component.js') diff --git a/app/client/common/paramGroup.component.js b/app/client/common/paramGroup.component.js index 276425b..ccff0b0 100644 --- a/app/client/common/paramGroup.component.js +++ b/app/client/common/paramGroup.component.js @@ -1,23 +1,29 @@ import { h, Component } from 'preact' import { connect } from 'react-redux' +import { bindActionCreators } from 'redux' +import * as liveActions from '../live/actions' -function ParamGroup(props) { - return ( -
- - {props.children} -
- ) +class ParamGroup extends Component { + render() { + const props = this.props + return ( +
+ + {props.children} +
+ ) + } } const mapStateToProps = state => ({ - + opt: state.live.opt, }) const mapDispatchToProps = (dispatch, ownProps) => ({ + actions: bindActionCreators(liveActions, dispatch) }) export default connect(mapStateToProps, mapDispatchToProps)(ParamGroup) -- cgit v1.2.3-70-g09d2