diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 11:43:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 11:43:41 +0200 |
| commit | 9b66e84a72eb1cf0a8caf19450f348f194c21d4f (patch) | |
| tree | f777160c357e8cdee9c6b770b10505b1fa748fe7 /app/client/common/paramGroup.component.js | |
| parent | bbf3c187c4967509a8097b168533786daacc2ec6 (diff) | |
update all these faders
Diffstat (limited to 'app/client/common/paramGroup.component.js')
| -rw-r--r-- | app/client/common/paramGroup.component.js | 28 |
1 files changed, 17 insertions, 11 deletions
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 ( - <div class='paramGroup'> - <label> - <h3>{props.title}</h3> - <input type='checkbox' /> - </label> - {props.children} - </div> - ) +class ParamGroup extends Component { + render() { + const props = this.props + return ( + <div class='paramGroup'> + <label> + <h3>{props.title}</h3> + <input type='checkbox' /> + </label> + {props.children} + </div> + ) + } } const mapStateToProps = state => ({ - + opt: state.live.opt, }) const mapDispatchToProps = (dispatch, ownProps) => ({ + actions: bindActionCreators(liveActions, dispatch) }) export default connect(mapStateToProps, mapDispatchToProps)(ParamGroup) |
