Skip to content

Commit

Permalink
Merge pull request #161 from credebl/issuance-attributename
Browse files Browse the repository at this point in the history
Fix: Issuance attribute name credential definition select button changes
  • Loading branch information
tipusinghaw authored Aug 28, 2023
2 parents fee165b + c64b15d commit 62c827b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commonComponents/datatable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const DataTable: React.FC<DataTableProps> = ({ header,displaySelect, data, loadi
</td>
))}
{displaySelect || showBtn &&
<button onClick={() => callback ? callback(ele?.clickId) : ''} type="button" className="text-center mt-2 text-white bg-gradient-to-r from-blue-500 via-blue-600 to-blue-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 mb-2">Select</button>
<button onClick={() => callback ? callback(ele?.clickId) : ''} type="button" className="text-center mt-2 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 mb-2">Select</button>
}
</tr>
)) : <tr className="text-center"><td className="p-2 text-center text-gray-500" colSpan={header.length}>Empty data</td></tr>}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Issuance/Issuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ interface IssuanceFormPayload {
}

interface DataTypeAttributes {
attributeName: string;
schemaDataType: string;
displayName:string
}

const IssueCred = () => {
Expand Down Expand Up @@ -84,7 +84,7 @@ const IssueCred = () => {
orgId: number,
) => {
const attrObj = attributes.map((attr) => ({
name: attr.attributeName,
name: attr.displayName,
value: '',
dataType: attr.schemaDataType,
}));
Expand Down Expand Up @@ -268,7 +268,7 @@ const IssueCred = () => {
className="w-1/3 pr-2 flex justify-end items-center font-light"
>
{attr.name.charAt(0).toUpperCase() +
attr.name.slice(1).toLowerCase()}
attr.name.slice(1).toLowerCase() + " :"}
</label>
<Field
type={
Expand Down

0 comments on commit 62c827b

Please sign in to comment.