summaryrefslogtreecommitdiff
path: root/app/client/common/paramGroup.component.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/common/paramGroup.component.js')
-rw-r--r--app/client/common/paramGroup.component.js28
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)