Skip to content

Commit

Permalink
Merge pull request #7953 from LedgerHQ/fix/live-14305
Browse files Browse the repository at this point in the history
fix: wording for loading screen of Ledger Sync
  • Loading branch information
KVNLS authored Oct 1, 2024
2 parents 307f467 + b8ccbe0 commit 0b2b50f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-geese-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

LLD - Change loading screen wording for Ledger Sync
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ export default function Loading({ title, subtitle }: Loading) {
<Text variant="h5Inter" fontSize={20} fontWeight="600">
{title}
</Text>
<Text variant="body" fontSize={14} color={"hsla(0, 0%, 75%, 1)"}>
<Text
variant="body"
fontSize={14}
color={"hsla(0, 0%, 75%, 1)"}
whiteSpace="pre-line"
textAlign="center"
>
{subtitle}
</Text>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ import { useTranslation } from "react-i18next";
import { AnalyticsFlow, AnalyticsPage } from "../../hooks/useLedgerSyncAnalytics";
import TrackPage from "~/renderer/analytics/TrackPage";
import { useLoadingStep } from "../../hooks/useLoadingStep";
import { walletSyncHasTrustchainBeenCreatedSelector } from "~/renderer/reducers/walletSync";
import { useSelector } from "react-redux";

export default function ActivationLoadingStep() {
useLoadingStep();
const hasTrustchainBeenCreated = useSelector(walletSyncHasTrustchainBeenCreatedSelector);
const { t } = useTranslation();
const title = "walletSync.loading.title";
const subtitle = hasTrustchainBeenCreated
? "walletSync.loading.activation"
: "walletSync.loading.synch";

return (
<>
<TrackPage category={String(AnalyticsPage.Loading)} flow={AnalyticsFlow} />
<Loading title={t(title)} subtitle={t(subtitle)} />
<Loading title={t(title)} subtitle={t("walletSync.loading.activation")} />
</>
);
}
3 changes: 1 addition & 2 deletions apps/ledger-live-desktop/static/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6473,8 +6473,7 @@
},
"loading": {
"title": "Hang tight...",
"activation": "Your data is being end-to-end encrypted... ",
"synch": "We are updating the synched instances..."
"activation": "This can take up to 30 seconds.\nPlease stay on this screen."
},
"error": {
"title": "Something went wrong",
Expand Down

0 comments on commit 0b2b50f

Please sign in to comment.