aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/PaymentOptions.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-11 18:19:38 -0300
committerSebastian <sebasjm@gmail.com>2023-03-11 18:20:16 -0300
commitc67d94c56e154be4b2cf91572cdc2d8d2da7f8e4 (patch)
treefbb9444857d4e11f348c051b9c470e9295990096 /packages/demobank-ui/src/pages/PaymentOptions.tsx
parentb72729f06535f12af974035b141a30320e75575c (diff)
downloadwallet-core-c67d94c56e154be4b2cf91572cdc2d8d2da7f8e4.tar.xz
fix: #7753
Diffstat (limited to 'packages/demobank-ui/src/pages/PaymentOptions.tsx')
-rw-r--r--packages/demobank-ui/src/pages/PaymentOptions.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/PaymentOptions.tsx b/packages/demobank-ui/src/pages/PaymentOptions.tsx
index 610efafc0..291f2aa9e 100644
--- a/packages/demobank-ui/src/pages/PaymentOptions.tsx
+++ b/packages/demobank-ui/src/pages/PaymentOptions.tsx
@@ -14,6 +14,7 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
+import { AmountJson } from "@gnu-taler/taler-util";
import { useTranslationContext } from "@gnu-taler/web-util/lib/index.browser";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
@@ -25,7 +26,7 @@ import { WalletWithdrawForm } from "./WalletWithdrawForm.js";
* Let the user choose a payment option,
* then specify the details trigger the action.
*/
-export function PaymentOptions({ currency }: { currency: string }): VNode {
+export function PaymentOptions({ limit }: { limit: AmountJson }): VNode {
const { i18n } = useTranslationContext();
const { pageStateSetter } = usePageContext();
@@ -62,7 +63,7 @@ export function PaymentOptions({ currency }: { currency: string }): VNode {
<h3>{i18n.str`Obtain digital cash`}</h3>
<WalletWithdrawForm
focus
- currency={currency}
+ limit={limit}
onSuccess={(data) => {
pageStateSetter((prevState: PageStateType) => ({
...prevState,
@@ -80,7 +81,7 @@ export function PaymentOptions({ currency }: { currency: string }): VNode {
<h3>{i18n.str`Transfer to bank account`}</h3>
<PaytoWireTransferForm
focus
- currency={currency}
+ limit={limit}
onSuccess={() => {
pageStateSetter((prevState: PageStateType) => ({
...prevState,