-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wallet sync synchronize via qr code from mobile to desktop
- Loading branch information
1 parent
efea3b0
commit 819d0e6
Showing
15 changed files
with
269 additions
and
72 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,8 @@ | ||
--- | ||
"ledger-live-desktop": minor | ||
"live-mobile": minor | ||
"@ledgerhq/trustchain": minor | ||
"@ledgerhq/web-tools": minor | ||
--- | ||
|
||
Ledger Sync - Added the synchronization of a trustchain from mobile to desktop by scanning the QR code |
14 changes: 14 additions & 0 deletions
14
apps/ledger-live-desktop/src/newArch/features/WalletSync/hooks/useInstanceName.ts
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,14 @@ | ||
import { getEnv } from "@ledgerhq/live-env"; | ||
import os from "os"; | ||
|
||
const platformMap: Record<string, string | undefined> = { | ||
ios: "iOS", | ||
android: "Android", | ||
}; | ||
|
||
export function useInstanceName(): string { | ||
const platform = os.platform(); | ||
const hash = getEnv("USER_ID").slice(0, 5); | ||
const name = `${platformMap[platform] || platform}${hash ? " " + hash : ""}`; | ||
return name; | ||
} |
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
3 changes: 0 additions & 3 deletions
3
...r-live-desktop/src/newArch/features/WalletSync/screens/Activation/02-DeviceActionStep.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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import React from "react"; | ||
import { Device } from "@ledgerhq/live-common/hw/actions/types"; | ||
import OpenOrInstallTrustChainApp from "../DeviceActions/openOrInstall"; | ||
import { useInitMemberCredentials } from "../../hooks/useInitMemberCredentials"; | ||
|
||
type Props = { | ||
goNext: (device: Device) => void; | ||
}; | ||
|
||
export default function DeviceActionStep({ goNext }: Props) { | ||
useInitMemberCredentials(); | ||
|
||
return <OpenOrInstallTrustChainApp goNext={goNext} />; | ||
} |
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
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
Oops, something went wrong.