rockin es6

pull/1717/head
Hunter Trujillo 2017-07-12 19:02:34 -06:00
parent beb04bd3f6
commit 73b465bef3
1 changed files with 8 additions and 12 deletions

View File

@ -138,18 +138,14 @@ KapacitorRulePage.propTypes = {
}).isRequired,
}
const mapStateToProps = state => {
return {
rules: state.rules,
queryConfigs: state.queryConfigs,
}
}
const mapStateToProps = ({rules, queryConfigs}) => ({
rules,
queryConfigs,
})
const mapDispatchToProps = dispatch => {
return {
kapacitorActions: bindActionCreators(kapacitorActionCreators, dispatch),
queryActions: bindActionCreators(queryActionCreators, dispatch),
}
}
const mapDispatchToProps = dispatch => ({
kapacitorActions: bindActionCreators(kapacitorActionCreators, dispatch),
queryActions: bindActionCreators(queryActionCreators, dispatch),
})
export default connect(mapStateToProps, mapDispatchToProps)(KapacitorRulePage)