-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ledger Sync - Display error when scanning invalid QR Code (#7800)
fix(llm): ledger sync display error when scanning invalid qr code
- Loading branch information
1 parent
a333038
commit 52ae4d3
Showing
13 changed files
with
188 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"live-mobile": patch | ||
"@ledgerhq/trustchain": patch | ||
--- | ||
|
||
Ledger Sync - Display relevant error when scanning old accounts export qr code or an invalid one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...-live-mobile/src/newArch/features/WalletSync/screens/Synchronize/ScannedInvalidQrCode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { ErrorComponent } from "../../components/Error/Simple"; | ||
import { AnalyticsButton, AnalyticsPage } from "../../hooks/useLedgerSyncAnalytics"; | ||
import { track } from "~/analytics"; | ||
|
||
interface Props { | ||
tryAgain: () => void; | ||
} | ||
|
||
export default function ScannedInvalidQrCode({ tryAgain }: Props) { | ||
const { t } = useTranslation(); | ||
|
||
const onTryAgain = () => { | ||
tryAgain(); | ||
track("button_clicked", { | ||
button: AnalyticsButton.TryAgain, | ||
page: AnalyticsPage.ScannedInvalidQrCode, | ||
}); | ||
}; | ||
|
||
return ( | ||
<ErrorComponent | ||
title={t("walletSync.synchronize.qrCode.scannedInvalidQrCode.title")} | ||
desc={t("walletSync.synchronize.qrCode.scannedInvalidQrCode.desc")} | ||
mainButton={{ | ||
label: t("walletSync.synchronize.qrCode.scannedInvalidQrCode.tryAgain"), | ||
onPress: onTryAgain, | ||
outline: false, | ||
}} | ||
analyticsPage={AnalyticsPage.ScannedInvalidQrCode} | ||
/> | ||
); | ||
} |
34 changes: 34 additions & 0 deletions
34
...ive-mobile/src/newArch/features/WalletSync/screens/Synchronize/ScannedOldImportQrCode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { ErrorComponent } from "../../components/Error/Simple"; | ||
import { AnalyticsButton, AnalyticsPage } from "../../hooks/useLedgerSyncAnalytics"; | ||
import { track } from "~/analytics"; | ||
|
||
interface Props { | ||
tryAgain: () => void; | ||
} | ||
|
||
export default function ScannedOldImportQrCode({ tryAgain }: Props) { | ||
const { t } = useTranslation(); | ||
|
||
const onTryAgain = () => { | ||
tryAgain(); | ||
track("button_clicked", { | ||
button: AnalyticsButton.TryAgain, | ||
page: AnalyticsPage.ScannedIncompatibleApps, | ||
}); | ||
}; | ||
|
||
return ( | ||
<ErrorComponent | ||
title={t("walletSync.synchronize.qrCode.scannedOldQrCode.title")} | ||
desc={t("walletSync.synchronize.qrCode.scannedOldQrCode.desc")} | ||
mainButton={{ | ||
label: t("walletSync.synchronize.qrCode.scannedOldQrCode.tryAgain"), | ||
onPress: onTryAgain, | ||
outline: false, | ||
}} | ||
analyticsPage={AnalyticsPage.ScannedIncompatibleApps} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters