Skip to content

Commit

Permalink
Merge pull request LedgerHQ#1365 from LedgerHQ/support/llm-terms-and-…
Browse files Browse the repository at this point in the history
…privacy-policy

support(URLs): LLM - Terms and Privacy Policy urls to update
  • Loading branch information
LFBarreto authored Sep 26, 2022
2 parents 9200f74 + ee95ada commit 2d618e1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-carrots-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

LLM - Terms and Privacy Policy urls to update
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/TERMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This agreement is between you (“you”, “your”, or “User”) and Ledger

By clicking “I agree”, “Get started”, or otherwise using any of the services provided by Ledger or any third party services made available through Ledger Live, you agree that you have carefully read and accepted all of the below terms and conditions.

Your use of Ledger Live is also subject to Ledger’s Privacy Policy, which is available at [https://shop.ledger.com/pages/privacy-policy](https://shop.ledger.com/pages/privacy-policy).
Your use of Ledger Live is also subject to Ledger’s Privacy Policy, which is available at [https://www.ledger.com/privacy-policy](https://www.ledger.com/privacy-policy).

BEFORE USING LEDGER LIVE, PLEASE EDUCATE YOURSELF TO MAKE INFORMED DECISIONS. LEDGER DOES NOT PROVIDE FINANCIAL, TAX, OR LEGAL ADVICE. LEDGER DOES NOT EXCHANGE, SEND, OR RECEIVE CRYPTO ASSETS FOR USERS.  LEDGER DOES NOT ADVISE OR MAKE RECOMMENDATIONS ABOUT ENGAGING IN CRYPTO ASSET TRANSACTIONS OR OPERATIONS. DECISIONS TO ENGAGE IN TRANSACTIONS OR PERFORM OPERATIONS INVOLVING CRYPTO ASSETS SHOULD BE TAKEN ON YOUR OWN OR RELY ON OPINIONS OF YOUR OWN RELIABLE AND QUALIFIED EXPERTS.

Expand Down
28 changes: 19 additions & 9 deletions apps/ledger-live-mobile/src/config/urls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,27 @@ export const urls = {
"https://support.ledger.com/hc/en-us/requests/new?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=contact",
terms: {
en: "https://shop.ledger.com/pages/ledger-live-terms-of-use",
fr: "https://shop.ledger.com/pages/conditions-dutilisation-de-ledger-live",
es: "https://shop.ledger.com/pages/condiciones-de-uso-de-ledger-live",
de: "https://shop.ledger.com/pages/nutzungsbedingungen-von-ledger-live",
fr: "https://shop.ledger.com/fr/pages/ledger-live-terms-of-use",
de: "https://shop.ledger.com/de/pages/ledger-live-terms-of-use",
es: "https://shop.ledger.com/es/pages/ledger-live-terms-of-use",
tr: "https://shop.ledger.com/tr/pages/ledger-live-terms-of-use",
ar: "https://shop.ledger.com/ar/pages/ledger-live-terms-of-use",
ja: "https://shop.ledger.com/ja/pages/ledger-live-terms-of-use",
zh: "https://shop.ledger.com/zh-cn/pages/ledger-live-terms-of-use",
ko: "https://shop.ledger.com/ko/pages/ledger-live-terms-of-use",
ru: "https://shop.ledger.com/ru/pages/ledger-live-terms-of-use",
},
privacyPolicy: {
en: "https://shop.ledger.com/pages/privacy-policy?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=privacy",
fr: "https://shop.ledger.com/pages/politique-de-confidentialite?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=privacy",
es: "https://shop.ledger.com/pages/politica-de-privacidad?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=privacy",
ru: "https://shop.ledger.com/pages/nasha-politika-konfidentsialnosti?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=privacy",
// TODO: Add the correct zh link
zh: "https://shop.ledger.com/pages/privacy-policy?utm_source=ledger_live_mobile&utm_medium=self_referral&utm_content=privacy",
en: "https://www.ledger.com/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
fr: "https://www.ledger.com/fr/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
de: "https://www.ledger.com/de/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
es: "https://www.ledger.com/es/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
tr: "https://www.ledger.com/tr/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
ar: "https://www.ledger.com/ar/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
ja: "https://www.ledger.com/ja/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
zh: "https://www.ledger.com/zh-hans/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
ko: "https://www.ledger.com/ko/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
ru: "https://www.ledger.com/ru/privacy-policy?utm_content=privacy&utm_medium=self_referral&utm_source=ledger_live_mobile",
},
ratingsContact:
"https://support.ledger.com/hc/en-us/articles/4423020306705-Contact-Us?support=true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function OnboardingStepTerms() {
/>
<LinkBox
text={t("settings.about.privacyPolicy")}
url={urls.privacyPolicy[locale]}
url={urls.privacyPolicy[locale] ?? urls.privacyPolicy.en}
event="OpenPrivacyPolicy"
/>
<Flex flexDirection="row" mt={9}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { memo } from "react";
import React, { memo, useCallback } from "react";
import { Trans } from "react-i18next";
import { Linking } from "react-native";
import { ExternalLinkMedium } from "@ledgerhq/native-ui/assets/icons";
Expand All @@ -8,12 +8,21 @@ import { useLocale } from "../../../context/Locale";

function PrivacyPolicyRow() {
const { locale } = useLocale();

const onPrivacyLink = useCallback(
() =>
Linking.openURL(
(urls.privacyPolicy as Record<string, string>)[locale] ||
urls.privacyPolicy.en,
),
[locale],
);
return (
<SettingsRow
event="PrivacyPolicyRow"
title={<Trans i18nKey="settings.about.privacyPolicy" />}
desc={<Trans i18nKey="settings.about.privacyPolicyDesc" />}
onPress={() => Linking.openURL(urls.privacyPolicy[locale || "en"])}
onPress={onPrivacyLink}
>
<ExternalLinkMedium size={20} color={"neutral.c100"} />
</SettingsRow>
Expand Down

0 comments on commit 2d618e1

Please sign in to comment.