From 3f68767eba4c10be25010245925535dacc78f6dc Mon Sep 17 00:00:00 2001 From: sanjay-k1910 Date: Fri, 13 Oct 2023 21:41:50 +0530 Subject: [PATCH 1/3] refactor: endorsement flow Signed-off-by: sanjay-k1910 --- src/api/ecosystem.ts | 2 +- src/app/SideBar.astro | 18 +- src/commonComponents/SchemaCard.tsx | 2 +- src/commonComponents/StatusTabletTag.tsx | 2 +- src/components/Ecosystem/Dashboard.tsx | 13 +- .../Ecosystem/EcosystemSidebarOption.tsx | 125 ++++---- .../Ecosystem/Endorsement/EndorsementCard.tsx | 37 ++- .../Endorsement/EndorsementPopup.tsx | 4 +- .../Ecosystem/Endorsement/index.tsx | 69 +++-- src/components/EmptyListComponent/index.tsx | 2 +- src/components/Issuance/IssuedCrdentials.tsx | 140 ++++----- .../Verification/ProofRequestPopup.tsx | 2 +- .../VerificationCredentialList.tsx | 289 +++++++++--------- src/config/ecosystem.ts | 21 +- 14 files changed, 368 insertions(+), 358 deletions(-) diff --git a/src/api/ecosystem.ts b/src/api/ecosystem.ts index 4a29856ea..bab35e7ca 100644 --- a/src/api/ecosystem.ts +++ b/src/api/ecosystem.ts @@ -87,7 +87,7 @@ export const getEndorsementList = async ( apiRoutes.Ecosystem.endorsements.list }?${page ? `pageNumber=${page}` : ''}${search ? `&search=${search}` : ''}${ itemPerPage ? `&pageSize=${itemPerPage}` : '' - }${type ? `&type=${type}` : ''}${status ? `&status=${status}` : ''}`; + }${type ? `&type=${type}` : ''}${status ? `&search=${status}` : ''}`; const axiosPayload = { url, diff --git a/src/app/SideBar.astro b/src/app/SideBar.astro index 041a91212..62e3d9e49 100644 --- a/src/app/SideBar.astro +++ b/src/app/SideBar.astro @@ -22,7 +22,7 @@ import { pathRoutes } from '../config/pathRoutes'; ]} >
    -
+