Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <[email protected]>
  • Loading branch information
bhavanakarwade committed Jul 17, 2024
2 parents 1f4d3bc + 2ffdbaa commit aaf6aab
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/api/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,4 @@ export const getFromCookies = (cookies: AstroCookies, key: string) =>{
export const removeFromLocalStorage = async (key: string) => {
await localStorage.removeItem(key);
return true;
};
};
1 change: 0 additions & 1 deletion src/components/AddOrganizationInEcosystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ const AddOrganizationInEcosystem = () => {
await removeFromLocalStorage(storageKeys.ERROR_ORG_IN_ECOSYSTEM);
})()
}, [])


useEffect(() => {
(async () => {
Expand Down
11 changes: 4 additions & 7 deletions src/components/Issuance/Issuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const IssueCred = () => {
attributes: attributesArray,
};
});

const issuancePayload = {
credentialData,
credentialDefinitionId: credDefId,
Expand All @@ -93,7 +92,7 @@ const IssueCred = () => {
setIssuanceFormPayload(issuancePayload);
setUserLoader(false);
};

const createAttributeValidationSchema = (
name: string,
value: string,
Expand Down Expand Up @@ -139,7 +138,6 @@ const IssueCred = () => {
const schemaAttributes = await getFromLocalStorage(storageKeys.SCHEMA_ATTR);

const parsedSchemaAttributes = JSON.parse(schemaAttributes) || [];

setSchemaAttributesDetails(parsedSchemaAttributes?.attribute);

return parsedSchemaAttributes.attribute;
Expand Down Expand Up @@ -179,12 +177,11 @@ const IssueCred = () => {
const convertedAttributesValues = {
...issuancePayload,
};

setIssuanceLoader(true);
const issueCredRes = await issueCredential(convertedAttributesValues);

const { data } = issueCredRes as AxiosResponse;

if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) {
setSuccess(data?.message);
window.location.href = `${pathRoutes.organizations.issuedCredentials}`;
Expand All @@ -195,7 +192,7 @@ const IssueCred = () => {
setIssuanceLoader(false);
}
};

return (
<div className="px-4 pt-2">
<div className="mb-4 col-span-full xl:mb-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/organization/EditOrgdetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { EditOrgdetailsModalProps, ILogoImage, Organisation, Values } from
import { processImage } from '../../utils/processImage';
import FormikErrorMessage from '../../commonComponents/formikerror/index'
import CustomSpinner from '../CustomSpinner';

interface IUpdateOrgPayload {
orgId: string | undefined;
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/organization/OrganizationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ const OrganizationDetails = ({ orgData }: { orgData: Organisation | null }) => {
);
};

export default OrganizationDetails;
export default OrganizationDetails;
2 changes: 0 additions & 2 deletions src/components/organization/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export interface IFormikValues {
privatekey: string;
endorserDid: string;
}

export interface IDedicatedAgentConfig {
walletName: string;
agentEndpoint: string;
Expand Down Expand Up @@ -250,7 +249,6 @@ export interface ILedgerItem {
deletedAt: string | null;
}


export interface IOrgCount {
verificationRecordsCount: number;
connectionRecordsCount: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Card, Pagination } from 'flowbite-react';
import { Button, Pagination } from 'flowbite-react';
import { useEffect, useState } from 'react';
import type { ChangeEvent } from 'react';

Expand Down Expand Up @@ -33,7 +33,6 @@ const ReceivedInvitations = () => {
const [error, setError] = useState<string | null>(null);

const [currentPage, setCurrentPage] = useState(initialPageState);
const timestamp = Date.now();

const onPageChange = (page: number) => {
setCurrentPage({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { apiStatusCodes, storageKeys } from '../../../config/CommonConstant';
import { getFromLocalStorage, passwordEncryption } from '../../../api/Auth';
import { getFromLocalStorage } from '../../../api/Auth';
import {
createDid,
getOrganizationById,
Expand All @@ -17,7 +17,6 @@ import DedicatedAgentForm from '../walletCommonComponents/DedicatedAgent';
import SharedAgentForm from './SharedAgent';
import WalletSteps from './WalletSteps';
import type { IValuesShared } from './interfaces';
import React from 'react';
import OrganizationDetails from '../OrganizationDetails';
import type { Organisation } from '../interfaces';

Expand Down Expand Up @@ -49,8 +48,7 @@ const WalletSpinup = (props: {
const [orgData, setOrgData] = useState<Organisation | null>(null);
const [isShared, setIsShared] = useState<boolean>(false);
const [isConfiguredDedicated, setIsConfiguredDedicated] = useState<boolean>(false);



const maskSeeds = (seed: string) => {
const visiblePart = seed.slice(0, -10);
const maskedPart = seed.slice(-10).replace(/./g, '*');
Expand Down Expand Up @@ -92,7 +90,7 @@ const WalletSpinup = (props: {
useEffect(() => {
fetchOrganizationDetails()
}, []);

const onRadioSelect = (type: string) => {
setAgentType(type);
};
Expand Down

0 comments on commit aaf6aab

Please sign in to comment.