aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/provider-approval/provider-approval.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/pages/provider-approval/provider-approval.container.js')
-rw-r--r--ui/app/components/pages/provider-approval/provider-approval.container.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/components/pages/provider-approval/provider-approval.container.js b/ui/app/components/pages/provider-approval/provider-approval.container.js
new file mode 100644
index 000000000..b223244a1
--- /dev/null
+++ b/ui/app/components/pages/provider-approval/provider-approval.container.js
@@ -0,0 +1,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)