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, }).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)