diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/OperationState/index.ts')
-rw-r--r-- | packages/demobank-ui/src/pages/OperationState/index.ts | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/packages/demobank-ui/src/pages/OperationState/index.ts b/packages/demobank-ui/src/pages/OperationState/index.ts index 20cb1760f..e4d9d45e3 100644 --- a/packages/demobank-ui/src/pages/OperationState/index.ts +++ b/packages/demobank-ui/src/pages/OperationState/index.ts @@ -39,8 +39,9 @@ import { RouteDefinition } from "../../route.js"; export interface Props { currency: string; onAuthorizationRequired: () => void; - routeClose: RouteDefinition<Record<string, never>>; + routeClose: RouteDefinition; onAbort: () => void; + routeHere: RouteDefinition<{ wopid: string }>; } export type State = @@ -81,7 +82,7 @@ export namespace State { onAbort: () => Promise< TalerCoreBankErrorsByMethod<"abortWithdrawalById"> | undefined >; - routeClose: RouteDefinition<Record<string, never>>; + routeClose: RouteDefinition; } export interface InvalidPayto { @@ -103,28 +104,29 @@ export namespace State { status: "need-confirmation"; onAuthorizationRequired: () => void; account: string; + routeHere: RouteDefinition<{ wopid: string }>; onAbort: - | undefined - | (() => Promise< - TalerCoreBankErrorsByMethod<"abortWithdrawalById"> | undefined - >); + | undefined + | (() => Promise< + TalerCoreBankErrorsByMethod<"abortWithdrawalById"> | undefined + >); onConfirm: - | undefined - | (() => Promise< - TalerCoreBankErrorsByMethod<"confirmWithdrawalById"> | undefined - >); + | undefined + | (() => Promise< + TalerCoreBankErrorsByMethod<"confirmWithdrawalById"> | undefined + >); error: undefined; id: string; } export interface Aborted { status: "aborted"; error: undefined; - routeClose: RouteDefinition<Record<string, never>>; + routeClose: RouteDefinition; } export interface Confirmed { status: "confirmed"; error: undefined; - routeClose: RouteDefinition<Record<string, never>>; + routeClose: RouteDefinition; } } |