Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix verification dashboard changes #735

Merged
merged 12 commits into from
Aug 23, 2024
Merged
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
Loading