-
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.
💄 [BUGFIX]: Add CTAs on missing screens for LedgerSync (#7627)
- Loading branch information
1 parent
17ca82c
commit a442d80
Showing
12 changed files
with
135 additions
and
27 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,5 @@ | ||
--- | ||
"ledger-live-desktop": patch | ||
--- | ||
|
||
Add CTAs on missing screens for LedgerSync |
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
38 changes: 36 additions & 2 deletions
38
...ger-live-desktop/src/newArch/features/WalletSync/screens/Synchronize/04-SyncFinalStep.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,13 +1,47 @@ | ||
import React from "react"; | ||
import { Success } from "../../components/Success"; | ||
import { useTranslation } from "react-i18next"; | ||
import { AnalyticsPage } from "../../hooks/useWalletSyncAnalytics"; | ||
import { AnalyticsPage, useWalletSyncAnalytics } from "../../hooks/useWalletSyncAnalytics"; | ||
import { useDispatch } from "react-redux"; | ||
import { setDrawerVisibility, setFlow } from "~/renderer/actions/walletSync"; | ||
import { Flow, Step } from "~/renderer/reducers/walletSync"; | ||
|
||
export default function SyncFinalStep() { | ||
const { t } = useTranslation(); | ||
const dispatch = useDispatch(); | ||
|
||
const { onClickTrack } = useWalletSyncAnalytics(); | ||
|
||
const title = "walletSync.success.synch.title"; | ||
const desc = "walletSync.success.synch.desc"; | ||
|
||
const onClose = () => { | ||
dispatch(setDrawerVisibility(false)); | ||
onClickTrack({ | ||
button: "Close", | ||
page: AnalyticsPage.KeyUpdated, | ||
flow: "Wallet Sync", | ||
}); | ||
}; | ||
|
||
const goToSync = () => { | ||
dispatch(setFlow({ flow: Flow.Synchronize, step: Step.SynchronizeWithQRCode })); | ||
onClickTrack({ | ||
button: "Sync with another Ledger Live", | ||
page: AnalyticsPage.KeyUpdated, | ||
flow: "Wallet Sync", | ||
}); | ||
}; | ||
|
||
return ( | ||
<Success title={t(title)} description={t(desc)} analyticsPage={AnalyticsPage.KeyUpdated} /> | ||
<Success | ||
title={t(title)} | ||
description={t(desc)} | ||
analyticsPage={AnalyticsPage.KeyUpdated} | ||
withClose | ||
onClose={onClose} | ||
withCta | ||
onClick={goToSync} | ||
/> | ||
); | ||
} |
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