rockin es6
parent
beb04bd3f6
commit
73b465bef3
|
@ -138,18 +138,14 @@ KapacitorRulePage.propTypes = {
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = ({rules, queryConfigs}) => ({
|
||||||
return {
|
rules,
|
||||||
rules: state.rules,
|
queryConfigs,
|
||||||
queryConfigs: state.queryConfigs,
|
})
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => {
|
const mapDispatchToProps = dispatch => ({
|
||||||
return {
|
kapacitorActions: bindActionCreators(kapacitorActionCreators, dispatch),
|
||||||
kapacitorActions: bindActionCreators(kapacitorActionCreators, dispatch),
|
queryActions: bindActionCreators(queryActionCreators, dispatch),
|
||||||
queryActions: bindActionCreators(queryActionCreators, dispatch),
|
})
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(KapacitorRulePage)
|
export default connect(mapStateToProps, mapDispatchToProps)(KapacitorRulePage)
|
||||||
|
|
Loading…
Reference in New Issue