[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Update new components in Activity page
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Update new components in Activity page |
Date: |
Fri, 17 Jul 2020 04:58:12 +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 e01577b Update new components in Activity page
e01577b is described below
commit e01577b1248f30b89770a3d670d3b4d3d20a537e
Author: tanhengyeow <E0032242@u.nus.edu>
AuthorDate: Fri Jul 17 10:57:50 2020 +0800
Update new components in Activity page
---
.../components/activity/AddPaymentInitiationDrawer.tsx | 3 ++-
frontend/src/components/activity/Index.tsx | 17 +++++++++--------
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
b/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
index 96037d4..d4af362 100644
--- a/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
+++ b/frontend/src/components/activity/AddPaymentInitiationDrawer.tsx
@@ -8,7 +8,7 @@ const layout = {
};
const AddPaymentInitiationDrawer = (props) => {
- const { visible, onClose } = props;
+ const { visible, onClose, updatePaymentInitiations } = props;
const [accountsList, setAccountsList] = useState([]);
@@ -85,6 +85,7 @@ const AddPaymentInitiationDrawer = (props) => {
.then(() => (isError = false))
.catch((err) => showError(err));
if (!isError) {
+ await updatePaymentInitiations();
onClose();
}
};
diff --git a/frontend/src/components/activity/Index.tsx
b/frontend/src/components/activity/Index.tsx
index 97fe87c..591f741 100644
--- a/frontend/src/components/activity/Index.tsx
+++ b/frontend/src/components/activity/Index.tsx
@@ -1,11 +1,13 @@
import React, { useState } from 'react';
-import { Button, Tabs } from 'antd';
+import { Tabs } from 'antd';
+import PaymentInitiationList from './PaymentInitiationList';
+
import './Activity.less';
-import AddPaymentInitiationDrawer from './AddPaymentInitiationDrawer';
const { TabPane } = Tabs;
const Activity = () => {
const [visible, setVisible] = useState(false);
+
const showDrawer = () => {
setVisible(true);
};
@@ -17,12 +19,11 @@ const Activity = () => {
<div className="activity">
<Tabs defaultActiveKey="1" type="card" size="large">
<TabPane tab="Payments" key="1">
- <div className="buttons-row">
- <Button type="primary" size="middle" onClick={showDrawer}>
- Add payment initiation
- </Button>
- <AddPaymentInitiationDrawer visible={visible} onClose={onClose} />
- </div>
+ <PaymentInitiationList
+ visible={visible}
+ onClose={onClose}
+ showDrawer={showDrawer}
+ />
</TabPane>
<TabPane tab="Transaction History" key="2">
Transaction History
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Update new components in Activity page,
gnunet <=