From 366cccb8fcae6a9971a1e8a9143d821e289339d1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 19 Oct 2023 02:55:57 -0300 Subject: integrate bank into the new taler-util API --- packages/demobank-ui/src/pages/OperationState/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/demobank-ui/src/pages/OperationState/index.ts') diff --git a/packages/demobank-ui/src/pages/OperationState/index.ts b/packages/demobank-ui/src/pages/OperationState/index.ts index b347fd942..bc3555c48 100644 --- a/packages/demobank-ui/src/pages/OperationState/index.ts +++ b/packages/demobank-ui/src/pages/OperationState/index.ts @@ -14,8 +14,8 @@ GNU Taler; see the file COPYING. If not, see */ -import { AbsoluteTime, AmountJson, WithdrawUriResult } from "@gnu-taler/taler-util"; -import { HttpError, utils } from "@gnu-taler/web-util/browser"; +import { AbsoluteTime, AmountJson, TalerCoreBankErrorsByMethod, TalerError, TalerErrorDetail, TranslatedString, WithdrawUriResult } from "@gnu-taler/taler-util"; +import { utils } from "@gnu-taler/web-util/browser"; import { ErrorLoading } from "../../components/ErrorLoading.js"; import { Loading } from "../../components/Loading.js"; import { useComponentState } from "./state.js"; @@ -44,7 +44,7 @@ export namespace State { export interface LoadingError { status: "loading-error"; - error: HttpError; + error: TalerError; } /** @@ -61,7 +61,7 @@ export namespace State { export interface InvalidPayto { status: "invalid-payto", error: undefined; - payto: string | null; + payto: string | undefined; onClose: () => void; } export interface InvalidWithdrawal { @@ -74,7 +74,7 @@ export namespace State { status: "invalid-reserve", error: undefined; onClose: () => void; - reserve: string | null; + reserve: string | undefined; } export interface NeedConfirmation { status: "need-confirmation", -- cgit v1.2.3