diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-08 12:57:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-08 12:57:28 -0300 |
commit | be741548a5c9325164bccc90056d490e85842e69 (patch) | |
tree | 13df131a95e3b08be39e0a4f5c6a555d57518ed7 /packages/demobank-ui/src/components/Cashouts/index.ts | |
parent | 13f397521c0bb2b1587fa287de5be49c74f69d12 (diff) | |
download | wallet-core-be741548a5c9325164bccc90056d490e85842e69.tar.xz |
error handling
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/index.ts')
-rw-r--r-- | packages/demobank-ui/src/components/Cashouts/index.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/index.ts b/packages/demobank-ui/src/components/Cashouts/index.ts index ca58de98f..571f23184 100644 --- a/packages/demobank-ui/src/components/Cashouts/index.ts +++ b/packages/demobank-ui/src/components/Cashouts/index.ts @@ -14,14 +14,11 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { ErrorLoading, HttpError, utils } from "@gnu-taler/web-util/browser"; -import { Loading } from "@gnu-taler/web-util/browser"; -// import { compose, StateViewMap } from "../../utils/index.js"; -// import { wxApi } from "../../wxApi.js"; +import { Loading, utils } from "@gnu-taler/web-util/browser"; import { AbsoluteTime, AmountJson, TalerCoreBankErrorsByMethod, TalerCorebankApi, TalerError } from "@gnu-taler/taler-util"; +import { ErrorLoadingWithDebug } from "../ErrorLoadingWithDebug.js"; import { useComponentState } from "./state.js"; -import { FailedView, LoadingUriView, ReadyView } from "./views.js"; -import { h } from "preact"; +import { FailedView, ReadyView } from "./views.js"; export interface Props { account: string; @@ -67,9 +64,7 @@ export interface Transaction { const viewMapping: utils.StateViewMap<State> = { loading: Loading, - "loading-error": ({error}) => { - return h(ErrorLoading, {error, showDetail:true}); - }, + "loading-error": ErrorLoadingWithDebug, "failed": FailedView, ready: ReadyView, }; |