diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-20 13:13:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-24 09:46:20 -0300 |
commit | 2a417881bb5c67cf889d54932025badf5a85a9e0 (patch) | |
tree | 6f2dc4cd5c08bbf0f8c6a04713e954145ce1f72a /packages/taler-wallet-webextension/src/popup | |
parent | e38be8d8ec1bdf1c854a2391ae9f4641cb69a249 (diff) | |
download | wallet-core-2a417881bb5c67cf889d54932025badf5a85a9e0.tar.xz |
fix permission api, grouping all cta into same path
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup')
-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 ( |