diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup/BackupPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/popup/BackupPage.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/BackupPage.tsx b/packages/taler-wallet-webextension/src/popup/BackupPage.tsx index d13f5244d..9900720d9 100644 --- a/packages/taler-wallet-webextension/src/popup/BackupPage.tsx +++ b/packages/taler-wallet-webextension/src/popup/BackupPage.tsx @@ -19,11 +19,14 @@ import { Timestamp } from "@gnu-taler/taler-util"; // import { ProviderPaymentStatus } from "@gnu-taler/taler-wallet-core/src/operations/backup"; import { formatDuration, intervalToDuration } from "date-fns"; import { JSX, VNode } from "preact"; -import { ProvidersByCurrency, useProvidersByCurrency } from "../hooks/useProvidersByCurrency"; +import { ProvidersByCurrency, useBackupStatus } from "../hooks/useProvidersByCurrency"; export function BackupPage(): VNode { - const providers = useProvidersByCurrency() - return <BackupView deviceName={"thisdevicename"} providers={providers}/>; + const status = useBackupStatus() + if (!status) { + return <div>Loading...</div> + } + return <BackupView deviceName={status.deviceName} providers={status.providers}/>; } export interface ViewProps { |