2018-09-27 20:19:09 +02:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import React, { Component } from 'react'
|
2019-03-22 00:03:30 +01:00
|
|
|
import ProviderPageContainer from '../../components/app/provider-page-container'
|
2018-09-27 20:19:09 +02:00
|
|
|
|
|
|
|
export default class ProviderApproval extends Component {
|
|
|
|
static propTypes = {
|
2019-05-03 19:32:05 +02:00
|
|
|
approveProviderRequestByOrigin: PropTypes.func.isRequired,
|
|
|
|
rejectProviderRequestByOrigin: PropTypes.func.isRequired,
|
2018-11-05 14:07:56 +01:00
|
|
|
providerRequest: PropTypes.object.isRequired,
|
2018-09-27 20:19:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
2019-05-03 19:32:05 +02:00
|
|
|
const { approveProviderRequestByOrigin, providerRequest, rejectProviderRequestByOrigin } = this.props
|
2018-09-27 20:19:09 +02:00
|
|
|
return (
|
2018-11-05 14:07:56 +01:00
|
|
|
<ProviderPageContainer
|
2019-05-03 19:32:05 +02:00
|
|
|
approveProviderRequestByOrigin={approveProviderRequestByOrigin}
|
|
|
|
rejectProviderRequestByOrigin={rejectProviderRequestByOrigin}
|
2018-11-05 14:07:56 +01:00
|
|
|
origin={providerRequest.origin}
|
2019-01-30 19:27:33 +01:00
|
|
|
tabID={providerRequest.tabID}
|
2018-11-05 14:07:56 +01:00
|
|
|
siteImage={providerRequest.siteImage}
|
|
|
|
siteTitle={providerRequest.siteTitle}
|
2019-10-29 17:14:41 +01:00
|
|
|
hostname={providerRequest.hostname}
|
|
|
|
extensionId={providerRequest.extensionId}
|
2018-11-05 14:07:56 +01:00
|
|
|
/>
|
2018-09-27 20:19:09 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|