gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 10/10: dd53: 20 days is odd, Android has 30 days ins


From: gnunet
Subject: [taler-wallet-core] 10/10: dd53: 20 days is odd, Android has 30 days instead
Date: Fri, 12 Apr 2024 18:28:58 +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 9b0aef33399afa664646715eb4286e3bc0e38fdc
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Apr 12 13:23:39 2024 -0300

    dd53: 20 days is odd, Android has 30 days instead
---
 .../src/cta/InvoiceCreate/views.tsx                        | 14 +++++---------
 .../src/cta/TransferCreate/views.tsx                       |  8 ++++----
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx 
b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
index fa7127fc0..e2c37fbba 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
@@ -18,13 +18,9 @@ import { useTranslationContext } from 
"@gnu-taler/web-util/browser";
 import { format } from "date-fns";
 import { Fragment, h, VNode } from "preact";
 import { Part } from "../../components/Part.js";
-import {
-  SvgIcon
-} from "../../components/styled/index.js";
 import { TermsOfService } from "../../components/TermsOfService/index.js";
 import { Button } from "../../mui/Button.js";
 import { TextField } from "../../mui/TextField.js";
-import editIcon from "../../svg/edit_24px.inline.svg";
 import {
   ExchangeDetails,
   getAmountWithFee,
@@ -39,7 +35,7 @@ export function ReadyView({
   create,
   toBeReceived,
   requestAmount,
-  doSelectExchange,
+  doSelectExchange: _doSelectExchange,
 }: State.Ready): VNode {
   const { i18n } = useTranslationContext();
 
@@ -58,10 +54,10 @@ export function ReadyView({
       );
     }
   }
-  async function _20DaysExpiration(): Promise<void> {
+  async function _30DaysExpiration(): Promise<void> {
     if (expiration.onInput) {
       expiration.onInput(
-        format(new Date().getTime() + 1000 * 60 * 60 * 24 * 20, "dd/MM/yyyy"),
+        format(new Date().getTime() + 1000 * 60 * 60 * 24 * 30, "dd/MM/yyyy"),
       );
     }
   }
@@ -131,9 +127,9 @@ export function ReadyView({
             <Button
               variant="outlined"
               disabled={!expiration.onInput}
-              onClick={_20DaysExpiration}
+              onClick={_30DaysExpiration}
             >
-              20 days
+              30 days
             </Button>
           </p>
         </p>
diff --git 
a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx 
b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
index 8489b0643..bc855f33d 100644
--- a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
@@ -50,10 +50,10 @@ export function ReadyView({
       );
     }
   }
-  async function _20DaysExpiration() {
+  async function _30DaysExpiration() {
     if (expiration.onInput) {
       expiration.onInput(
-        format(new Date().getTime() + 1000 * 60 * 60 * 24 * 20, "dd/MM/yyyy"),
+        format(new Date().getTime() + 1000 * 60 * 60 * 24 * 30, "dd/MM/yyyy"),
       );
     }
   }
@@ -100,9 +100,9 @@ export function ReadyView({
             <Button
               variant="outlined"
               disabled={!expiration.onInput}
-              onClick={_20DaysExpiration}
+              onClick={_30DaysExpiration}
             >
-              20 days
+              30 days
             </Button>
           </p>
         </p>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]