Skip to content

Commit

Permalink
Update analytics tooltip (#4034)
Browse files Browse the repository at this point in the history
* update analytics tooltip

I would like to link "privacy policy" to the actual privacy policy, but I do not know how to utilize the $link function

* Add privacy policy link

Co-authored-by: Frederik Bolding <[email protected]>
  • Loading branch information
jspence425 and FrederikBolding authored Jun 17, 2021
1 parent f0753ec commit 23bb3d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ export const DEFAULT_GAP_TO_SCAN_FOR = 5;
export const SETTINGS_FILENAME = 'MyCrypto_Settings_File';

export const ASSET_DROPDOWN_SIZE_THRESHOLD = 150;

export const PRIVACY_POLICY_LINK = 'https://mycrypto.com/privacy/';
8 changes: 6 additions & 2 deletions src/features/Settings/components/GeneralSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { connect, ConnectedProps } from 'react-redux';
import styled from 'styled-components';

import { DashboardPanel, Divider, LinkApp, SubHeading, Switch, Tooltip } from '@components';
import { Fiats, ROUTE_PATHS } from '@config';
import { Fiats, PRIVACY_POLICY_LINK, ROUTE_PATHS } from '@config';
import {
AppState,
canTrackProductAnalytics,
Expand Down Expand Up @@ -114,7 +114,11 @@ const GeneralSettings = ({
{translate('SETTINGS_PRODUCT_ANALYTICS')}{' '}
<Tooltip
width="16px"
tooltip={<span>{translate('SETTINGS_PRODUCT_ANALYTICS_TOOLTIP')}</span>}
tooltip={
<span>
{translate('SETTINGS_PRODUCT_ANALYTICS_TOOLTIP', { $link: PRIVACY_POLICY_LINK })}
</span>
}
/>
</SubHeading>
<SettingsControl>
Expand Down
2 changes: 1 addition & 1 deletion src/translations/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@
"SETTINGS_IMPORT_SUCCESS": "You will see the imported files in settings!",
"SETTINGS_IMPORT_SUCCESS_HEADING": "Import Complete",
"SETTINGS_PRODUCT_ANALYTICS": "Product Analytics",
"SETTINGS_PRODUCT_ANALYTICS_TOOLTIP": "Help us improve our product by allowing us to collect behaviorial events. We never collect any identifiable information (address, transaction hash, ip etc)",
"SETTINGS_PRODUCT_ANALYTICS_TOOLTIP": "Help us improve MyCrypto by allowing us to collect basic product analytics. We do not collect any identifiable information like IP address, transaction hash, or address. Read our [privacy policy]($link) for more information.",
"SETTINGS_TOOLTIP": "Your MyCrypto Settings include the Accounts in your MyCrypto Wallet, your Saved Address, and other preferences. We will only export or import your MyCrypto Settings. This does not include private keys and exporting is not a way to backup private keys.",
"SHOW": "Show",
"SIGNED_TRANSACTION": "Signed Transaction",
Expand Down

0 comments on commit 23bb3d7

Please sign in to comment.