1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/app/components/pages/provider-approval/provider-approval.component.js

29 lines
853 B
JavaScript
Raw Normal View History

2018-09-27 20:19:09 +02:00
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import ProviderPageContainer from '../../provider-page-container'
2018-09-27 20:19:09 +02:00
export default class ProviderApproval extends Component {
static propTypes = {
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 () {
const { approveProviderRequest, providerRequest, rejectProviderRequest } = this.props
2018-09-27 20:19:09 +02:00
return (
<ProviderPageContainer
approveProviderRequest={approveProviderRequest}
origin={providerRequest.origin}
rejectProviderRequest={rejectProviderRequest}
siteImage={providerRequest.siteImage}
siteTitle={providerRequest.siteTitle}
/>
2018-09-27 20:19:09 +02:00
)
}
}