From 124a72244bffd05995ea5d86eba10d1ee183d5a2 Mon Sep 17 00:00:00 2001 From: Moulika Kulkarni Date: Thu, 19 Oct 2023 15:43:59 +0530 Subject: [PATCH] fix: verification-details-popup Signed-off-by: Moulika Kulkarni --- .../Verification/AttributesListData.tsx | 10 +++---- .../Verification/SchemaCredDefDetails.tsx | 30 ++++++++++++------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/components/Verification/AttributesListData.tsx b/src/components/Verification/AttributesListData.tsx index 7ed9ee086..845682abe 100644 --- a/src/components/Verification/AttributesListData.tsx +++ b/src/components/Verification/AttributesListData.tsx @@ -10,12 +10,12 @@ interface AttributesListProps {
-
+
Attributes
-
+
{' '} Values
@@ -25,18 +25,18 @@ interface AttributesListProps { attributeDataList?.map((item, index) => (
-
+
{item?.entity}
:
-
+
{item?.properties.join(', ')}
diff --git a/src/components/Verification/SchemaCredDefDetails.tsx b/src/components/Verification/SchemaCredDefDetails.tsx index d1cf1b9d2..f0251d8a5 100644 --- a/src/components/Verification/SchemaCredDefDetails.tsx +++ b/src/components/Verification/SchemaCredDefDetails.tsx @@ -10,16 +10,26 @@ const SchemaCredDefDetails = ({ schemaCredDefList }: SchemaCredDefProps) => { {schemaCredDefList.map((item) => (
-
-
- Schema Id -
-
:
{' '} -
- {Object.values(item)[2]} + + {Object.values(item)[2] ? ( +
+
+ {Object.values(item)[2] ? 'Schema Id' : ''} +
{' '} +
+ {' '} + : +
{' '} +
+ {Object.values(item)[2] + ? Object.values(item)[2] + : ''} +
-
+ ) : ( + '' + )} + {Object.values(item)[1] ? (
@@ -29,7 +39,7 @@ const SchemaCredDefDetails = ({ schemaCredDefList }: SchemaCredDefProps) => { {' '} :
{' '} -
+
{Object.values(item)[1] ? Object.values(item)[1] : ''}