diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup/BalancePage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/popup/BalancePage.tsx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx index 014d3b18e..a5f24470e 100644 --- a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx +++ b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx @@ -17,12 +17,13 @@ import { Amounts, Balance, i18n } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { BalanceTable } from "../components/BalanceTable"; -import { ButtonPrimary, ErrorBox } from "../components/styled"; +import { Loading } from "../components/Loading"; +import { LoadingError } from "../components/LoadingError"; +import { MultiActionButton } from "../components/MultiActionButton"; +import { ButtonPrimary } from "../components/styled"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook"; import { PageLink } from "../renderHtml"; import * as wxApi from "../wxApi"; -import { MultiActionButton } from "../components/MultiActionButton"; -import { Loading } from "../components/Loading"; interface Props { goToWalletDeposit: (currency: string) => void; @@ -42,15 +43,7 @@ export function BalancePage({ } if (state.hasError) { - return ( - <Fragment> - <ErrorBox>{state.message}</ErrorBox> - <p> - Click <PageLink pageName="welcome">here</PageLink> for help and - diagnostics. - </p> - </Fragment> - ); + return <LoadingError title="Could not load balance page" error={state} />; } return ( |