mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +01:00
26ada8a828
* Parameterize NetworkDisplay background colour * Update design for login request screen * Pass siteTitle, siteImage through for calls to ethereum.enable() * Bring the site images closer together
29 lines
853 B
JavaScript
29 lines
853 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React, { Component } from 'react'
|
|
import ProviderPageContainer from '../../provider-page-container'
|
|
|
|
export default class ProviderApproval extends Component {
|
|
static propTypes = {
|
|
approveProviderRequest: PropTypes.func.isRequired,
|
|
providerRequest: PropTypes.object.isRequired,
|
|
rejectProviderRequest: PropTypes.func.isRequired,
|
|
};
|
|
|
|
static contextTypes = {
|
|
t: PropTypes.func,
|
|
};
|
|
|
|
render () {
|
|
const { approveProviderRequest, providerRequest, rejectProviderRequest } = this.props
|
|
return (
|
|
<ProviderPageContainer
|
|
approveProviderRequest={approveProviderRequest}
|
|
origin={providerRequest.origin}
|
|
rejectProviderRequest={rejectProviderRequest}
|
|
siteImage={providerRequest.siteImage}
|
|
siteTitle={providerRequest.siteTitle}
|
|
/>
|
|
)
|
|
}
|
|
}
|