aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/provider-approval/provider-approval.component.js
blob: 70d3d0007376622938a64a822202fa7449313023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import ProviderPageContainer from '../../components/app/provider-page-container'

export default class ProviderApproval extends Component {
  static propTypes = {
    approveProviderRequestByOrigin: PropTypes.func.isRequired,
    rejectProviderRequestByOrigin: PropTypes.func.isRequired,
    providerRequest: PropTypes.object.isRequired,
  };

  static contextTypes = {
    t: PropTypes.func,
  };

  render () {
    const { approveProviderRequestByOrigin, providerRequest, rejectProviderRequestByOrigin } = this.props
    return (
      <ProviderPageContainer
        approveProviderRequestByOrigin={approveProviderRequestByOrigin}
        rejectProviderRequestByOrigin={rejectProviderRequestByOrigin}
        origin={providerRequest.origin}
        tabID={providerRequest.tabID}
        siteImage={providerRequest.siteImage}
        siteTitle={providerRequest.siteTitle}
      />
    )
  }
}