[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 03/03: show 'go to wallet' on succesful withdrawal
From: |
gnunet |
Subject: |
[taler-wallet-core] 03/03: show 'go to wallet' on succesful withdrawal |
Date: |
Thu, 20 Jun 2024 23:16:07 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit e2ddbdb6c6abf115ec4c1d7c9fe7296d80325b74
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Jun 20 18:15:57 2024 -0300
show 'go to wallet' on succesful withdrawal
---
packages/bank-ui/src/pages/WithdrawalQRCode.tsx | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/packages/bank-ui/src/pages/WithdrawalQRCode.tsx
b/packages/bank-ui/src/pages/WithdrawalQRCode.tsx
index f43a6a89c..fc6d20631 100644
--- a/packages/bank-ui/src/pages/WithdrawalQRCode.tsx
+++ b/packages/bank-ui/src/pages/WithdrawalQRCode.tsx
@@ -21,6 +21,7 @@ import {
WithdrawUriResult,
assertUnreachable,
parsePaytoUri,
+ stringifyWithdrawUri,
} from "@gnu-taler/taler-util";
import {
Attention,
@@ -122,6 +123,7 @@ export function WithdrawalQRCode({
</div>
);
}
+ const talerWithdrawUri = stringifyWithdrawUri(withdrawUri);
if (data.status === "confirmed") {
return (
@@ -161,13 +163,20 @@ export function WithdrawalQRCode({
</div>
</div>
</div>
- <div class="mt-5 sm:mt-6">
+ <div class="mt-5 sm:mt-6 items-center justify-between gap-x-2 flex">
<a
href={routeClose.url({})}
name="done"
- class="inline-flex w-full justify-center rounded-md bg-indigo-600
px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500
focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2
focus-visible:outline-indigo-600"
+ class="inline-flex justify-center rounded-md bg-white-600 px-3
py-2 text-sm font-semibold text-black shadow-sm "
+ >
+ <i18n.Translate>Close</i18n.Translate>
+ </a>
+ <a
+ href={talerWithdrawUri}
+ name="done"
+ class="inline-flex justify-center rounded-md bg-indigo-600 px-3
py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500
focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2
focus-visible:outline-indigo-600"
>
- <i18n.Translate>Done</i18n.Translate>
+ <i18n.Translate>Go to wallet</i18n.Translate>
</a>
</div>
</div>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.