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,
|
2019-11-04 22:28:50 +01:00
|
|
|
providerRequest: PropTypes.exact({
|
|
|
|
hostname: PropTypes.string.isRequired,
|
|
|
|
siteImage: PropTypes.string,
|
|
|
|
siteTitle: PropTypes.string,
|
|
|
|
origin: PropTypes.string.isRequired,
|
|
|
|
extensionId: PropTypes.string,
|
|
|
|
}).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}
|
|
|
|
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
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|