diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
commit | 73e36c99037cef1ccc43bb80b67b19e0f44326fd (patch) | |
tree | c076b0084a3fb5004b8f3ffa32cc09a9b1a42d22 /packages/demobank-ui/src/pages/PaymentOptions.tsx | |
parent | 271488f041890391e1c6d946fd1aef00c2113fd0 (diff) | |
download | wallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.tar.xz |
return to form after 2fa cancelled
Diffstat (limited to 'packages/demobank-ui/src/pages/PaymentOptions.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/PaymentOptions.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/pages/PaymentOptions.tsx b/packages/demobank-ui/src/pages/PaymentOptions.tsx index 10be1245f..b13f7539f 100644 --- a/packages/demobank-ui/src/pages/PaymentOptions.tsx +++ b/packages/demobank-ui/src/pages/PaymentOptions.tsx @@ -19,7 +19,7 @@ import { Fragment, VNode, h } from "preact"; import { useBankState } from "../hooks/bank-state.js"; import { PaytoWireTransferForm } from "./PaytoWireTransferForm.js"; import { WalletWithdrawForm } from "./WalletWithdrawForm.js"; -import { RouteDefinition } from "../route.js"; +import { EmptyObject, RouteDefinition } from "../route.js"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useWithdrawalDetails } from "../hooks/access.js"; import { useEffect } from "preact/hooks"; @@ -85,9 +85,13 @@ export function PaymentOptions({ onClose: () => void; routeOperationDetails: RouteDefinition<{ wopid: string }>; - routeClose: RouteDefinition<Record<string, never>>; - routeChargeWallet: RouteDefinition<Record<string, never>>; - routeWireTransfer: RouteDefinition<Record<string, never>>; + routeClose: RouteDefinition; + routeChargeWallet: RouteDefinition; + routeWireTransfer: RouteDefinition<{ + account?: string, + subject?: string, + amount?: string, + }>; }): VNode { const { i18n } = useTranslationContext(); const [bankState, updateBankState] = useBankState(); @@ -213,6 +217,7 @@ export function PaymentOptions({ <PaytoWireTransferForm focus title={i18n.str`Transfer details`} + routeHere={routeWireTransfer} limit={limit} onAuthorizationRequired={onAuthorizationRequired} onSuccess={onClose} |