-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8237 from LedgerHQ/fix/live-14634
fix: ledger sync loading drawer in light mode
- Loading branch information
Showing
3 changed files
with
29 additions
and
11 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": minor | ||
--- | ||
|
||
Fix Ledger Sync loading drawer during activation |
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
13 changes: 10 additions & 3 deletions
13
...ledger-live-desktop/src/newArch/features/WalletSync/screens/Activation/04-LoadingStep.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,19 +1,26 @@ | ||
import React from "react"; | ||
import Loading from "../../components/LoadingStep"; | ||
import { useTranslation } from "react-i18next"; | ||
import { AnalyticsFlow, AnalyticsPage } from "../../hooks/useLedgerSyncAnalytics"; | ||
import { useSelector } from "react-redux"; | ||
import { themeSelector } from "~/renderer/actions/general"; | ||
import TrackPage from "~/renderer/analytics/TrackPage"; | ||
import Loading from "../../components/LoadingStep"; | ||
import { AnalyticsFlow, AnalyticsPage } from "../../hooks/useLedgerSyncAnalytics"; | ||
import { useLoadingStep } from "../../hooks/useLoadingStep"; | ||
|
||
export default function ActivationLoadingStep() { | ||
useLoadingStep(); | ||
const { t } = useTranslation(); | ||
const currentTheme = useSelector(themeSelector); | ||
const title = "walletSync.loading.title"; | ||
|
||
return ( | ||
<> | ||
<TrackPage category={String(AnalyticsPage.Loading)} flow={AnalyticsFlow} /> | ||
<Loading title={t(title)} subtitle={t("walletSync.loading.activation")} /> | ||
<Loading | ||
title={t(title)} | ||
subtitle={t("walletSync.loading.activation")} | ||
theme={currentTheme} | ||
/> | ||
</> | ||
); | ||
} |