Skip to content

Commit

Permalink
Fix verification dashboard changes (#735)
Browse files Browse the repository at this point in the history
* fix: issuance schemaName issue

Signed-off-by: pranalidhanavade <[email protected]>

* fix: verification breadcrumb fixes

Signed-off-by: pranalidhanavade <[email protected]>

* fix: schema card hover issue

Signed-off-by: pranalidhanavade <[email protected]>

* fix: delete organization delete svg issue

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarclous issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues duplication error

Signed-off-by: pranalidhanavade <[email protected]>

* fix: added highlight tag for fixing code logic

Signed-off-by: pranalidhanavade <[email protected]>

* fix: added limited attriutes value in common constant file

Signed-off-by: pranalidhanavade <[email protected]>

* fix: resolved comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

* fix: type errors in schemaList

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade authored Aug 23, 2024
1 parent 801cade commit 08ccf3e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
9 changes: 1 addition & 8 deletions src/commonComponents/SchemaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,7 @@ const handleCheckboxChange = (checked: boolean, schemaData?: ISchemaData) => {
<Card onClick={() => {

if (!props.w3cSchema) {
const schemaData = {
schemaId: props.schemaId,
attributes: props.attributes,
issuerDid: props.issuerDid,
created: props.created,
};

props.onClickCallback(schemaData);
props.onClickCallback(props.schemaId, props.attributes, props.issuerDid, props.created)
}

if (props.w3cSchema) {
Expand Down
7 changes: 1 addition & 6 deletions src/commonComponents/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ export interface ISchemaCardProps {
created: string;
isClickable?: boolean;
showCheckbox?: boolean;
onClickCallback: (schemaData: {
schemaId: string;
attributes: string[];
issuerDid: string;
created: string;
}) => void;
onClickCallback: (schemaId: string, attributes: string[], issuerDid: string, created: string) => void;

onClickW3CCallback: (W3CSchemaData: {
schemaId: string;
Expand Down
15 changes: 5 additions & 10 deletions src/components/Resources/Schema/SchemasList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,12 @@ const SchemaList = (props: {
}
};

const schemaSelectionCallback = ({
schemaId,
attributes,
issuerId,
created,
}: {
schemaId: string;
attributes: string[];
const schemaSelectionCallback = (
schemaId: string,
attributes: string[],
issuerId: string,
created: string;
}) => {
created: string,
) => {
const schemaDetails = {
attribute: attributes,
issuerDid: issuerId,
Expand Down
1 change: 1 addition & 0 deletions src/components/Verification/EmailVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { IEmailValues, IPredicate, IRequestedAttributes, ISelectedAttribute
import { getOrganizationById } from '../../api/organization';
import { pathRoutes } from '../../config/pathRoutes';
import { AlertComponent } from '../AlertComponent';
import React from 'react';

const EmailVerification = () => {
const [loading, setLoading] = useState<boolean>(false);
Expand Down

0 comments on commit 08ccf3e

Please sign in to comment.