From e84d2b6175da8c308835f1a7f27e177dcecd248a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 3 Oct 2023 10:11:21 -0300 Subject: [PATCH] more ui, removed some testing values --- .../src/components/Transactions/views.tsx | 4 +-- .../src/pages/PaytoWireTransferForm.tsx | 8 ++--- .../demobank-ui/src/pages/QrCodeSection.tsx | 35 +++++++++---------- .../src/pages/WithdrawalQRCode.tsx | 2 +- 4 files changed, 23 insertions(+), 26 deletions(-) diff --git a/packages/demobank-ui/src/components/Transactions/views.tsx b/packages/demobank-ui/src/components/Transactions/views.tsx index 69f4369a2..696fb59f3 100644 --- a/packages/demobank-ui/src/components/Transactions/views.tsx +++ b/packages/demobank-ui/src/components/Transactions/views.tsx @@ -81,9 +81,7 @@ export function ReadyView({ transactions, onNext, onPrev }: State.Ready): VNode
Amount
- {item.negative ? i18n.str`sent` : i18n.str`received`} - - {item.amount ? ( + {item.negative ? i18n.str`sent` : i18n.str`received`} {item.amount ? ( ) : ( <{i18n.str`invalid value`}> diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx index b3fd51670..69a9a07b2 100644 --- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx +++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx @@ -59,9 +59,9 @@ export function PaytoWireTransferForm({ }): VNode { const [isRawPayto, setIsRawPayto] = useState(false); // FIXME: remove this - const [iban, setIban] = useState("DE4745461198061"); - const [subject, setSubject] = useState("ASD"); - const [amount, setAmount] = useState("1.00001"); + const [iban, setIban] = useState(); + const [subject, setSubject] = useState(); + const [amount, setAmount] = useState(); const [rawPaytoInput, rawPaytoInputSetter] = useState( undefined, @@ -189,7 +189,7 @@ export function PaytoWireTransferForm({ - using a form + Using a form diff --git a/packages/demobank-ui/src/pages/QrCodeSection.tsx b/packages/demobank-ui/src/pages/QrCodeSection.tsx index 6a50d4ef3..e07525ab4 100644 --- a/packages/demobank-ui/src/pages/QrCodeSection.tsx +++ b/packages/demobank-ui/src/pages/QrCodeSection.tsx @@ -84,27 +84,25 @@ export function QrCodeSection({

If you have a Taler wallet installed in this device

- -
+

You will see the details of the operation in your wallet including the fees (if applies). - If you still one you can install it from here. + If you still don't have one you can install it from here.

-
+ + Withdraw +
@@ -122,12 +120,13 @@ export function QrCodeSection({
- +
diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx index c8efc033b..2d90b410c 100644 --- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx @@ -112,7 +112,7 @@ export function WithdrawalQRCode({ e.preventDefault(); onClose() }}> - Continue + Done