1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/components/app/permissions-connect-footer/permissions-connect-footer.component.js
2021-04-28 14:53:59 -05:00

31 lines
814 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">
<div className="permissions-connect-footer__text">
<div>{t('onlyConnectTrust')}</div>
<div
className="permissions-connect-footer__text--link"
onClick={() => {
global.platform.openTab({
url:
'https://medium.com/metamask/privacy-mode-is-now-enabled-by-default-1c1c957f4d57',
});
}}
>
{t('learnMore')}
</div>
</div>
</div>
);
}
}