From 7582855e2723e11de25f10b6d5ba8a0757616765 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 19 Oct 2023 15:10:18 -0300 Subject: some ui fixes --- packages/demobank-ui/src/pages/PaymentOptions.tsx | 52 +++++++++++------------ 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'packages/demobank-ui/src/pages/PaymentOptions.tsx') diff --git a/packages/demobank-ui/src/pages/PaymentOptions.tsx b/packages/demobank-ui/src/pages/PaymentOptions.tsx index f60ba3270..c36d58691 100644 --- a/packages/demobank-ui/src/pages/PaymentOptions.tsx +++ b/packages/demobank-ui/src/pages/PaymentOptions.tsx @@ -18,7 +18,7 @@ import { AmountJson } from "@gnu-taler/taler-util"; import { notifyInfo, useTranslationContext } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { PaytoWireTransferForm } from "./PaytoWireTransferForm.js"; +import { PaytoWireTransferForm, doAutoFocus } from "./PaytoWireTransferForm.js"; import { WalletWithdrawForm } from "./WalletWithdrawForm.js"; import { useSettings } from "../hooks/settings.js"; @@ -30,7 +30,7 @@ export function PaymentOptions({ limit, goToConfirmOperation }: { limit: AmountJ const { i18n } = useTranslationContext(); const [settings] = useSettings(); - const [tab, setTab] = useState<"charge-wallet" | "wire-transfer" | undefined>(); + const [tab, setTab] = useState<"charge-wallet" | "wire-transfer" | undefined>("wire-transfer"); return (
@@ -46,28 +46,28 @@ export function PaymentOptions({ limit, goToConfirmOperation }: { limit: AmountJ { setTab("charge-wallet") }} /> - +
+
💵
- - - a Taler wallet - - - Withdraw digital money into your mobile wallet or browser extension + + a Taler wallet + + +
+ Withdraw digital money into your mobile wallet or browser extension +
{!!settings.currentWithdrawalOperationId && - + operation ready } - -
- +
@@ -75,20 +75,20 @@ export function PaymentOptions({ limit, goToConfirmOperation }: { limit: AmountJ { setTab("wire-transfer") }} /> - -
- - +
+ +
+ another bank account - - Make a wire transfer to an account which you know the bank account number - +
- - +
+ Make a wire transfer to an account which you know the bank account number +
+
{tab === "charge-wallet" && ( -- cgit v1.2.3