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
Whymarrh Whitby 26ada8a828 Update Connect Request screen design (#5644)
* 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
2018-11-05 15:07:09 -08:00

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}
/>
)
}
}