2018-09-27 20:19:09 +02:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import ProviderApproval from './provider-approval.component'
|
2019-05-03 19:32:05 +02:00
|
|
|
import { approveProviderRequestByOrigin, rejectProviderRequestByOrigin } from '../../store/actions'
|
2018-09-27 20:19:09 +02:00
|
|
|
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
|
|
return {
|
2019-05-03 19:32:05 +02:00
|
|
|
approveProviderRequestByOrigin: origin => dispatch(approveProviderRequestByOrigin(origin)),
|
|
|
|
rejectProviderRequestByOrigin: origin => dispatch(rejectProviderRequestByOrigin(origin)),
|
2018-09-27 20:19:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(ProviderApproval)
|