|
|
@ -7,10 +7,13 @@ import { saveSettings } from 'actions/settings' |
|
|
|
import Box from 'components/base/Box' |
|
|
|
import Switch from 'components/base/Switch' |
|
|
|
import FakeLink from 'components/base/FakeLink' |
|
|
|
import { Trans } from 'react-i18next' |
|
|
|
import TrackPage from 'analytics/TrackPage' |
|
|
|
import Track from 'analytics/Track' |
|
|
|
import { openModal } from 'reducers/modals' |
|
|
|
import { MODAL_SHARE_ANALYTICS, MODAL_TECHNICAL_DATA } from 'config/constants' |
|
|
|
import { openURL } from 'helpers/linking' |
|
|
|
import { urls } from 'config/urls' |
|
|
|
import ShareAnalytics from '../../modals/ShareAnalytics' |
|
|
|
import TechnicalData from '../../modals/TechnicalData' |
|
|
|
import { Title, Description, FixedTopContainer, StepContainerInner } from '../helperComponents' |
|
|
@ -46,6 +49,9 @@ class Analytics extends PureComponent<StepProps, State> { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
onClickTerms = () => openURL(urls.terms) |
|
|
|
onClickPrivacy = () => openURL(urls.privacyPolicy) |
|
|
|
|
|
|
|
handleNavBack = () => { |
|
|
|
const { savePassword, prevStep } = this.props |
|
|
|
savePassword(undefined) |
|
|
@ -157,6 +163,26 @@ class Analytics extends PureComponent<StepProps, State> { |
|
|
|
<Switch isChecked={sentryLogsToggle} onChange={this.handleSentryLogsToggle} /> |
|
|
|
</Box> |
|
|
|
</Container> |
|
|
|
<Container> |
|
|
|
<Box> |
|
|
|
<Box mb={1}> |
|
|
|
<AnalyticsTitle data-e2e="analytics_terms"> |
|
|
|
{t('onboarding.analytics.terms.title')} |
|
|
|
</AnalyticsTitle> |
|
|
|
</Box> |
|
|
|
<AnalyticsText> |
|
|
|
<div> |
|
|
|
<Trans i18nKey="onboarding.analytics.terms.desc"> |
|
|
|
{'Accept the '} |
|
|
|
<HoveredLink onClick={this.onClickTerms}>{'terms of license'}</HoveredLink> |
|
|
|
{'and'} |
|
|
|
<HoveredLink onClick={this.onClickPrivacy}>{'privacy'}</HoveredLink> |
|
|
|
{'.'} |
|
|
|
</Trans> |
|
|
|
</div> |
|
|
|
</AnalyticsText> |
|
|
|
</Box> |
|
|
|
</Container> |
|
|
|
</Box> |
|
|
|
</StepContainerInner> |
|
|
|
<OnboardingFooter |
|
|
@ -204,8 +230,16 @@ const Container = styled(Box).attrs({ |
|
|
|
width: 550px; |
|
|
|
justify-content: space-between; |
|
|
|
` |
|
|
|
const LearnMoreWrapper = styled(Box).attrs({})` |
|
|
|
const LearnMoreWrapper = styled(Box)` |
|
|
|
${FakeLink}:hover { |
|
|
|
color: ${p => p.theme.colors.wallet}; |
|
|
|
} |
|
|
|
` |
|
|
|
|
|
|
|
const HoveredLink = styled.span` |
|
|
|
cursor: pointer; |
|
|
|
text-decoration: underline; |
|
|
|
&:hover { |
|
|
|
color: ${p => p.theme.colors.wallet}; |
|
|
|
} |
|
|
|
` |
|
|
|