From f30fa7bc762829124d188858418a91f644d12e5e Mon Sep 17 00:00:00 2001 From: ap-justin <89639563+ap-justin@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:47:28 +0800 Subject: [PATCH] add save actin --- src/pages/Admin/Charity/Dashboard/Loaded.tsx | 2 ++ src/pages/Admin/Charity/Dashboard/LockActions.tsx | 15 +++++++++++++++ src/pages/Admin/Charity/Dashboard/Movements.tsx | 5 +++++ src/types/aws/apes/index.ts | 2 ++ 4 files changed, 24 insertions(+) diff --git a/src/pages/Admin/Charity/Dashboard/Loaded.tsx b/src/pages/Admin/Charity/Dashboard/Loaded.tsx index ec0148a53b..89490c162e 100644 --- a/src/pages/Admin/Charity/Dashboard/Loaded.tsx +++ b/src/pages/Admin/Charity/Dashboard/Loaded.tsx @@ -22,6 +22,7 @@ export function Loaded({ "liq-cash": 0, "liq-lock": 0, "lock-cash": 0, + "lock-liq": 0, }; const liqDeductions = Object.entries(mov).reduce( @@ -42,6 +43,7 @@ export function Loaded({ "liq-cash": props.donationsBal - liqDeductions, "liq-lock": props.donationsBal - liqDeductions, "lock-cash": props.sustainabilityFundBal - lockDeductions, + "lock-liq": props.sustainabilityFundBal - lockDeductions, }; return ( diff --git a/src/pages/Admin/Charity/Dashboard/LockActions.tsx b/src/pages/Admin/Charity/Dashboard/LockActions.tsx index 30ed69d518..4ef7472e69 100644 --- a/src/pages/Admin/Charity/Dashboard/LockActions.tsx +++ b/src/pages/Admin/Charity/Dashboard/LockActions.tsx @@ -13,6 +13,21 @@ export function LockActions({ classes = "", ...props }: Props) { const { showModal } = useModalContext(); return (
+