Skip to content

Commit

Permalink
Merge pull request #8194 from LedgerHQ/LIVE-11631-lld-onboarding-reco…
Browse files Browse the repository at this point in the history
…ver-outgoing-link

fix(lld): localised URL
  • Loading branch information
Justkant authored Nov 14, 2024
2 parents f80a1e6 + 060c9df commit 3a485a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/seven-nails-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Localised URL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import QrCodeLLMImages from "./images/QRcode_LLM.png";
import { openURL } from "~/renderer/linking";
import { urls } from "~/config/urls";
import { track } from "~/renderer/analytics/segment";
import { useLocalizedUrl } from "~/renderer/hooks/useLocalizedUrls";

type Props = {
onClose?: () => void | undefined;
Expand All @@ -28,7 +29,9 @@ const ProtectDiscoverBody = ({ onClose }: Props) => {
const { t } = useTranslation();
const protectServicesDesktopFeature = useFeature("protectServicesDesktop");

const discoverTheBenefitsLink = protectServicesDesktopFeature?.params?.discoverTheBenefitsLink;
const discoverTheBenefitsLink = useLocalizedUrl(
protectServicesDesktopFeature?.params?.discoverTheBenefitsLink || "",
);
const onDiscoverClick = useCallback(() => {
if (!discoverTheBenefitsLink) return;
track("button_clicked2", {
Expand Down

0 comments on commit 3a485a1

Please sign in to comment.