mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
2845398c3d
* Ensure home screen does not render if there are unapproved txs (#6501) * Ensure that the confirm screen renders before the home screen if there are unapproved txs. * Only render confirm screen before home screen on mount. * inpage - revert _metamask api to isEnabled isApproved isUnlocked
30 lines
970 B
JavaScript
30 lines
970 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React, { Component } from 'react'
|
|
import ProviderPageContainer from '../../components/app/provider-page-container'
|
|
|
|
export default class ProviderApproval extends Component {
|
|
static propTypes = {
|
|
approveProviderRequestByOrigin: PropTypes.func.isRequired,
|
|
rejectProviderRequestByOrigin: PropTypes.func.isRequired,
|
|
providerRequest: PropTypes.object.isRequired,
|
|
};
|
|
|
|
static contextTypes = {
|
|
t: PropTypes.func,
|
|
};
|
|
|
|
render () {
|
|
const { approveProviderRequestByOrigin, providerRequest, rejectProviderRequestByOrigin } = this.props
|
|
return (
|
|
<ProviderPageContainer
|
|
approveProviderRequestByOrigin={approveProviderRequestByOrigin}
|
|
rejectProviderRequestByOrigin={rejectProviderRequestByOrigin}
|
|
origin={providerRequest.origin}
|
|
tabID={providerRequest.tabID}
|
|
siteImage={providerRequest.siteImage}
|
|
siteTitle={providerRequest.siteTitle}
|
|
/>
|
|
)
|
|
}
|
|
}
|