mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 00:28:06 +01:00
28 lines
804 B
JavaScript
28 lines
804 B
JavaScript
|
import PropTypes from 'prop-types'
|
||
|
import React, { Component } from 'react'
|
||
|
|
||
|
export default class PermissionsConnectFooter extends Component {
|
||
|
static contextTypes = {
|
||
|
t: PropTypes.func,
|
||
|
}
|
||
|
|
||
|
render () {
|
||
|
const { t } = this.context
|
||
|
return (
|
||
|
<div className="permissions-connect-footer">
|
||
|
<img src="/images/mm-secure.svg" />
|
||
|
<div className="permissions-connect-footer__text">
|
||
|
<div>{ t('onlyConnectTrust') }</div>
|
||
|
<div
|
||
|
className="permissions-connect-footer__text--link"
|
||
|
onClick={() => {
|
||
|
global.platform.openWindow({ url: 'https://medium.com/metamask/privacy-mode-is-now-enabled-by-default-1c1c957f4d57' })
|
||
|
}}
|
||
|
>{ t('learnAboutRisks') }
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
}
|