You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
5.7 KiB
147 lines
5.7 KiB
4 years ago
|
import React, { Component } from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import MetaFoxLogo from '../../../ui/metafox-logo';
|
||
|
import PageContainerFooter from '../../../ui/page-container/page-container-footer';
|
||
6 years ago
|
|
||
|
export default class MetaMetricsOptInModal extends Component {
|
||
|
static propTypes = {
|
||
|
setParticipateInMetaMetrics: PropTypes.func,
|
||
|
hideModal: PropTypes.func,
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
|
static contextTypes = {
|
||
|
metricsEvent: PropTypes.func,
|
||
4 years ago
|
t: PropTypes.func,
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
4 years ago
|
render() {
|
||
4 years ago
|
const { metricsEvent, t } = this.context;
|
||
|
const { setParticipateInMetaMetrics, hideModal } = this.props;
|
||
6 years ago
|
|
||
|
return (
|
||
|
<div className="metametrics-opt-in metametrics-opt-in-modal">
|
||
|
<div className="metametrics-opt-in__main">
|
||
|
<div className="metametrics-opt-in__content">
|
||
5 years ago
|
<MetaFoxLogo />
|
||
6 years ago
|
<div className="metametrics-opt-in__body-graphic">
|
||
4 years ago
|
<img src="images/metrics-chart.svg" alt="" />
|
||
6 years ago
|
</div>
|
||
4 years ago
|
<div className="metametrics-opt-in__title">
|
||
|
Help Us Improve MetaMask
|
||
|
</div>
|
||
6 years ago
|
<div className="metametrics-opt-in__body">
|
||
|
<div className="metametrics-opt-in__description">
|
||
4 years ago
|
MetaMask would like to gather usage data to better understand
|
||
|
how our users interact with the extension. This data will be
|
||
|
used to continually improve the usability and user experience of
|
||
|
our product and the Ethereum ecosystem.
|
||
6 years ago
|
</div>
|
||
|
<div className="metametrics-opt-in__description">
|
||
4 years ago
|
MetaMask will..
|
||
6 years ago
|
</div>
|
||
|
|
||
|
<div className="metametrics-opt-in__committments">
|
||
|
<div className="metametrics-opt-in__row">
|
||
|
<i className="fa fa-check" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
|
Always allow you to opt-out via Settings
|
||
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__row">
|
||
|
<i className="fa fa-check" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
|
Send anonymized click & pageview events
|
||
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__row">
|
||
|
<i className="fa fa-check" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
4 years ago
|
Maintain a public aggregate dashboard to educate the
|
||
|
community
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__row metametrics-opt-in__break-row">
|
||
|
<i className="fa fa-times" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
4 years ago
|
<span className="metametrics-opt-in__bold">Never</span>{' '}
|
||
|
collect keys, addresses, transactions, balances, hashes, or
|
||
|
any personal information
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__row">
|
||
|
<i className="fa fa-times" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
4 years ago
|
<span className="metametrics-opt-in__bold">Never</span>{' '}
|
||
|
collect your full IP address
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__row">
|
||
|
<i className="fa fa-times" />
|
||
|
<div className="metametrics-opt-in__row-description">
|
||
4 years ago
|
<span className="metametrics-opt-in__bold">Never</span> sell
|
||
|
data for profit. Ever!
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__bottom-text">
|
||
4 years ago
|
This data is aggregated and is therefore anonymous for the
|
||
|
purposes of General Data Protection Regulation (EU) 2016/679. For
|
||
|
more information in relation to our privacy practices, please see
|
||
|
our
|
||
5 years ago
|
<a
|
||
6 years ago
|
href="https://metamask.io/privacy.html"
|
||
|
target="_blank"
|
||
|
rel="noopener noreferrer"
|
||
|
>
|
||
|
Privacy Policy here
|
||
4 years ago
|
</a>
|
||
|
.
|
||
6 years ago
|
</div>
|
||
|
</div>
|
||
|
<div className="metametrics-opt-in__footer">
|
||
|
<PageContainerFooter
|
||
|
onCancel={() => {
|
||
4 years ago
|
setParticipateInMetaMetrics(false).then(() => {
|
||
|
metricsEvent(
|
||
|
{
|
||
6 years ago
|
eventOpts: {
|
||
|
category: 'Onboarding',
|
||
|
action: 'Metrics Option',
|
||
|
name: 'Metrics Opt Out',
|
||
|
},
|
||
|
isOptIn: true,
|
||
4 years ago
|
},
|
||
|
{
|
||
6 years ago
|
excludeMetaMetricsId: true,
|
||
4 years ago
|
},
|
||
4 years ago
|
);
|
||
|
hideModal();
|
||
|
});
|
||
6 years ago
|
}}
|
||
4 years ago
|
cancelText={t('noThanks')}
|
||
6 years ago
|
hideCancel={false}
|
||
|
onSubmit={() => {
|
||
4 years ago
|
setParticipateInMetaMetrics(true).then(() => {
|
||
|
metricsEvent({
|
||
|
eventOpts: {
|
||
|
category: 'Onboarding',
|
||
|
action: 'Metrics Option',
|
||
|
name: 'Metrics Opt In',
|
||
|
},
|
||
|
isOptIn: true,
|
||
4 years ago
|
});
|
||
|
hideModal();
|
||
|
});
|
||
6 years ago
|
}}
|
||
4 years ago
|
submitText={t('affirmAgree')}
|
||
5 years ago
|
submitButtonType="confirm"
|
||
6 years ago
|
disabled={false}
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
4 years ago
|
);
|
||
6 years ago
|
}
|
||
|
}
|