2018-09-27 20:19:09 +02:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import React, { Component } from 'react'
|
2018-11-05 14:07:56 +01:00
|
|
|
import ProviderPageContainer from '../../provider-page-container'
|
2018-09-27 20:19:09 +02:00
|
|
|
|
|
|
|
export default class ProviderApproval extends Component {
|
|
|
|
static propTypes = {
|
2018-11-05 14:07:56 +01:00
|
|
|
approveProviderRequest: PropTypes.func.isRequired,
|
|
|
|
providerRequest: PropTypes.object.isRequired,
|
|
|
|
rejectProviderRequest: PropTypes.func.isRequired,
|
2018-09-27 20:19:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
2018-11-05 14:07:56 +01:00
|
|
|
const { approveProviderRequest, providerRequest, rejectProviderRequest } = this.props
|
2018-09-27 20:19:09 +02:00
|
|
|
return (
|
2018-11-05 14:07:56 +01:00
|
|
|
<ProviderPageContainer
|
|
|
|
approveProviderRequest={approveProviderRequest}
|
|
|
|
origin={providerRequest.origin}
|
|
|
|
rejectProviderRequest={rejectProviderRequest}
|
|
|
|
siteImage={providerRequest.siteImage}
|
|
|
|
siteTitle={providerRequest.siteTitle}
|
|
|
|
/>
|
2018-09-27 20:19:09 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|