aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/provider-approval/provider-approval.container.js
blob: b223244a12626611cc0288fd5ddb5cf5e6fecda5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { connect } from 'react-redux'
import ProviderApproval from './provider-approval.component'
import { approveProviderRequest, rejectProviderRequest } from '../../../actions'

function mapDispatchToProps (dispatch) {
  return {
    approveProviderRequest: origin => dispatch(approveProviderRequest(origin)),
    rejectProviderRequest: origin => dispatch(rejectProviderRequest(origin)),
  }
}

export default connect(null, mapDispatchToProps)(ProviderApproval)