diff --git a/src/commonComponents/datatable/index.tsx b/src/commonComponents/datatable/index.tsx index cb89d899e..e03116289 100644 --- a/src/commonComponents/datatable/index.tsx +++ b/src/commonComponents/datatable/index.tsx @@ -45,10 +45,10 @@ const DataTable: React.FC = ({ header,displaySelect, data, loadi {data.length ? data.map((ele, index) => ( - + - {ele.data.map(subEle => ( - + {ele.data.map((subEle,index) => ( +
{subEle.data}
{subEle.subData && subEle.subData} diff --git a/src/components/Ecosystem/Endorsement/EndorsementCard.tsx b/src/components/Ecosystem/Endorsement/EndorsementCard.tsx index 0773b3a9f..276e1d06b 100644 --- a/src/components/Ecosystem/Endorsement/EndorsementCard.tsx +++ b/src/components/Ecosystem/Endorsement/EndorsementCard.tsx @@ -153,8 +153,7 @@ const EndorsementCard = ({ fromEndorsementList, data, onClickCallback, cardTrans ) })} - {!allAttributes && attributesData.length > 3 && ...} - + {!allAttributes && attributesData.length === 3 && ...} diff --git a/src/components/Ecosystem/MemberList.tsx b/src/components/Ecosystem/MemberList.tsx index 01c507de0..43125b5be 100644 --- a/src/components/Ecosystem/MemberList.tsx +++ b/src/components/Ecosystem/MemberList.tsx @@ -51,7 +51,7 @@ const MemberList = () => { return 0; } }; - const sortedMemberList = data?.data?.members?.sort(compareMembers); + const sortedMemberList = data?.data?.members?.sort(compareMembers); const membersData = sortedMemberList?.map( (member: { orgId: string; @@ -78,34 +78,34 @@ const MemberList = () => { }, { data: member.orgDid ? ( - - {member?.orgDid} + + {member?.orgDid} + + ) : ( + + Not available + + ), + }, + { + data: member.ecosystemRole.name ? ( + + + {member?.ecosystemRole?.name} + {member?.orgId === userOrgId ? '(You)' : ''} + ) : ( 'Not available' - ), - }, - { - data: member.ecosystemRole.name ? ( - - - {member?.ecosystemRole?.name} - - {member?.orgId === userOrgId ? '(You)' : ''} - - ) : ( - 'Not available' - ), - }, - { + ), + }, + { data: member.status ? ( { const header = [ { columnName: 'Organization' }, { columnName: 'Member Since' }, - { columnName: 'Organization Did', width:'w-1.5 pl-6' }, - { columnName: 'Role', width:'pl-7' }, + { columnName: 'Organization Did', width: 'w-1.5 pl-6' }, + { columnName: 'Role', width: 'pl-7' }, { columnName: 'Status' }, ]; diff --git a/src/components/Resources/Schema/SchemasList.tsx b/src/components/Resources/Schema/SchemasList.tsx index f91ef19fc..f2ac944e2 100644 --- a/src/components/Resources/Schema/SchemasList.tsx +++ b/src/components/Resources/Schema/SchemasList.tsx @@ -151,20 +151,20 @@ const SchemaList = (props: { schemaSelectionCallback: (schemaId: string, schemaD checkEcosystemData(); }, []) - const createSchemaTitle = isEcosystemData?.isEcosystemMember ? { - title: "Schema Endorsement", svg: - - - } : { - title: "Create", svg:
- - - -
- } + const schemaEndorsement = + + + +const create =
+ + + +
+ + const createSchemaTitle = isEcosystemData?.isEcosystemMember ? { title: "Schema Endorsement", svg: schemaEndorsement } : { title: "Create", svg: create } const emptyListTitle = "No Schemas" const emptyListDesc = "Get started by creating a new Schema" - const emptyListBtn = isEcosystemData?.isEcosystemMember ? "Request Endorsement" : "Create Schema" + const emptyListBtn = isEcosystemData?.isEcosystemMember ? { title: "Schema Endorsement", svg: schemaEndorsement } : { title: "Create Schema", svg: create } return (
@@ -275,10 +275,8 @@ const SchemaList = (props: { schemaSelectionCallback: (schemaId: string, schemaD - - } + buttonContent={emptyListBtn.title} + svgComponent={emptyListBtn.svg} onClick={() => { window.location.href = `${pathRoutes.organizations.createSchema}?OrgId=${orgId}` }}