gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: Update payment initiation amount forma


From: gnunet
Subject: [libeufin] branch master updated: Update payment initiation amount format in frontend
Date: Fri, 10 Jul 2020 09:45:31 +0200

This is an automated email from the git hooks/post-receive script.

heng-yeow pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e3809cb  Update payment initiation amount format in frontend
e3809cb is described below

commit e3809cbaf007f818078ed3accd2e7780cfb56b14
Author: tanhengyeow <E0032242@u.nus.edu>
AuthorDate: Fri Jul 10 15:45:19 2020 +0800

    Update payment initiation amount format in frontend
---
 .../components/activity/AddPaymentInitiationDrawer.tsx    | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx 
b/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
index 712fb00..96037d4 100644
--- a/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
+++ b/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
@@ -16,6 +16,7 @@ const AddPaymentInitiationDrawer = (props) => {
   const [name, setName] = useState('');
   const [IBAN, setIBAN] = useState('');
   const [BIC, setBIC] = useState('');
+  const [currency, setCurrency] = useState('');
   const [amount, setAmount] = useState('');
   const [subject, setSubject] = useState('');
 
@@ -52,7 +53,7 @@ const AddPaymentInitiationDrawer = (props) => {
         name: name,
         iban: IBAN,
         bic: BIC,
-        amount: amount,
+        amount: `${currency}:${amount}`,
         subject: subject,
       }),
     })
@@ -157,6 +158,18 @@ const AddPaymentInitiationDrawer = (props) => {
           >
             <Input onChange={(e) => setBIC(e.target.value)} />
           </Form.Item>
+          <Form.Item
+            label="Currency"
+            name="Currency"
+            rules={[
+              {
+                required: true,
+                message: 'Please input the currency to send!',
+              },
+            ]}
+          >
+            <Input onChange={(e) => setCurrency(e.target.value)} />
+          </Form.Item>
           <Form.Item
             label="Amount"
             name="Amount"

-- 
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]