diff --git a/src/api/issuance.ts b/src/api/issuance.ts index 4157b0fa4..0706f5b5d 100644 --- a/src/api/issuance.ts +++ b/src/api/issuance.ts @@ -7,7 +7,7 @@ import { getFromLocalStorage } from './Auth'; export const getIssuedCredentials = async (state: IssueCredential) => { const orgId = await getFromLocalStorage(storageKeys.ORG_ID); - const url = `${apiRoutes.Issuance.getIssuedCredentials}?orgId=${orgId}&state=${state}`; + const url = `${apiRoutes.Issuance.getIssuedCredentials}?orgId=${orgId}`; const axiosPayload = { url, diff --git a/src/commonComponents/SchemaCard.tsx b/src/commonComponents/SchemaCard.tsx index af479cd5d..b2289fc6a 100644 --- a/src/commonComponents/SchemaCard.tsx +++ b/src/commonComponents/SchemaCard.tsx @@ -1,7 +1,7 @@ import { Card } from 'flowbite-react'; import { dateConversion } from '../utils/DateConversion'; -const SchemaCard = (props: { schemaName: string, version: string, schemaId: string, issuerDid: string, attributes: string[], created: string, onClickCallback: (schemaId: string) => void; },) => { +const SchemaCard = (props: {className:string, schemaName: string, version: string, schemaId: string, issuerDid: string, attributes: string[], created: string, onClickCallback: (schemaId: string) => void; },) => { return ( { props.onClickCallback(props.schemaId) @@ -15,11 +15,11 @@ const SchemaCard = (props: { schemaName: string, version: string, schemaId: stri Version: {props.version}

-
+ {/*

{dateConversion(props.created)}

-
+
*/}

diff --git a/src/commonComponents/datatable/index.tsx b/src/commonComponents/datatable/index.tsx index a2ae742e3..db59afe5e 100644 --- a/src/commonComponents/datatable/index.tsx +++ b/src/commonComponents/datatable/index.tsx @@ -6,9 +6,10 @@ interface DataTableProps { data: TableData[]; loading: boolean; callback?: (clickId: string | null | undefined) => void; + displaySelect?:boolean; } -const DataTable: React.FC = ({ header, data, loading, callback }) => { +const DataTable: React.FC = ({ header,displaySelect, data, loading, callback }) => { return (

@@ -41,13 +42,16 @@ const DataTable: React.FC = ({ header, data, loading, callback } {data.length ? data.map((ele, index) => ( - callback ? callback(ele?.clickId) : ''}> + callback ? callback(ele?.clickId) : ''}> {ele.data.map(subEle => (
{subEle.data}
{subEle.subData && subEle.subData} ))} + {displaySelect && + + } )) : No Data Found} diff --git a/src/components/Issuance/CredDefSelection.tsx b/src/components/Issuance/CredDefSelection.tsx index 126bf6986..2d6f7437b 100644 --- a/src/components/Issuance/CredDefSelection.tsx +++ b/src/components/Issuance/CredDefSelection.tsx @@ -117,8 +117,12 @@ const CredDefSelection = () => { color="info" />
- : } + : +
+ +
+ }
@@ -133,7 +137,7 @@ const CredDefSelection = () => { setError(null) }} /> - +
) } diff --git a/src/components/Issuance/Issuance.tsx b/src/components/Issuance/Issuance.tsx index cda2d01b6..9d711957f 100644 --- a/src/components/Issuance/Issuance.tsx +++ b/src/components/Issuance/Issuance.tsx @@ -29,7 +29,7 @@ interface Attributes { value: string } interface IssuanceFormPayload { - userName: string, + userName?: string, connectionId: string, attributes: Attributes[], credentialDefinitionId: string, @@ -71,7 +71,8 @@ const IssueCred = () => { const attrObj = attributes.map(attr => ({ name: attr, value: '' })) const issuancePayload = selectedUsers.map(user => { return { - userName: user.userName, connectionId: user.connectionId, + // userName: user.userName, + connectionId: user.connectionId, attributes: attrObj, credentialDefinitionId: credDefId, orgId } }) @@ -147,7 +148,9 @@ const IssueCred = () => { {!schemaLoader ? - +