diff --git a/src/api/Auth.ts b/src/api/Auth.ts index 321eb51ca..45e158e80 100644 --- a/src/api/Auth.ts +++ b/src/api/Auth.ts @@ -308,4 +308,4 @@ export const getFromCookies = (cookies: AstroCookies, key: string) =>{ export const removeFromLocalStorage = async (key: string) => { await localStorage.removeItem(key); return true; -}; +}; \ No newline at end of file diff --git a/src/components/AddOrganizationInEcosystem.tsx b/src/components/AddOrganizationInEcosystem.tsx index 44cb30a11..ebfb9b1f1 100644 --- a/src/components/AddOrganizationInEcosystem.tsx +++ b/src/components/AddOrganizationInEcosystem.tsx @@ -353,7 +353,6 @@ const AddOrganizationInEcosystem = () => { await removeFromLocalStorage(storageKeys.ERROR_ORG_IN_ECOSYSTEM); })() }, []) - useEffect(() => { (async () => { diff --git a/src/components/Issuance/Issuance.tsx b/src/components/Issuance/Issuance.tsx index 720790535..7a3f0ee9c 100644 --- a/src/components/Issuance/Issuance.tsx +++ b/src/components/Issuance/Issuance.tsx @@ -155,7 +155,6 @@ const IssueCred = () => { attributes: attributesArray, }; }); - const issuancePayload = { credentialData, credentialDefinitionId: credDefId, @@ -364,12 +363,12 @@ const getSelectedUsers = async (): Promise => { const convertedAttributesValues = { ...issuancePayload, }; - + setIssuanceLoader(true); const issueCredRes = await issueCredential(convertedAttributesValues, credentialType); const { data } = issueCredRes as AxiosResponse; - + if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) { setSuccess(data?.message); window.location.href = `${pathRoutes.organizations.issuedCredentials}`; @@ -380,7 +379,7 @@ const getSelectedUsers = async (): Promise => { setIssuanceLoader(false); } }; - + return (
diff --git a/src/components/organization/EditOrgdetailsModal.tsx b/src/components/organization/EditOrgdetailsModal.tsx index 319992a10..c52e3d83d 100644 --- a/src/components/organization/EditOrgdetailsModal.tsx +++ b/src/components/organization/EditOrgdetailsModal.tsx @@ -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; diff --git a/src/components/organization/OrganizationDetails.tsx b/src/components/organization/OrganizationDetails.tsx index e32093763..9a0779f93 100644 --- a/src/components/organization/OrganizationDetails.tsx +++ b/src/components/organization/OrganizationDetails.tsx @@ -241,4 +241,4 @@ const OrganizationDetails = ({ orgData }: { orgData: Organisation | null }) => { ); }; -export default OrganizationDetails; +export default OrganizationDetails; \ No newline at end of file diff --git a/src/components/organization/interfaces/index.ts b/src/components/organization/interfaces/index.ts index 4f9c93240..80866bdef 100644 --- a/src/components/organization/interfaces/index.ts +++ b/src/components/organization/interfaces/index.ts @@ -250,7 +250,6 @@ export interface ILedgerItem { deletedAt: string | null; } - export interface IOrgCount { verificationRecordsCount: number; connectionRecordsCount: number; diff --git a/src/components/organization/invitations/ReceivedInvitations.tsx b/src/components/organization/invitations/ReceivedInvitations.tsx index 9282bd21d..7a37fecf8 100644 --- a/src/components/organization/invitations/ReceivedInvitations.tsx +++ b/src/components/organization/invitations/ReceivedInvitations.tsx @@ -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'; @@ -33,7 +33,6 @@ const ReceivedInvitations = () => { const [error, setError] = useState(null); const [currentPage, setCurrentPage] = useState(initialPageState); - const timestamp = Date.now(); const onPageChange = (page: number) => { setCurrentPage({ diff --git a/src/components/organization/walletCommonComponents/WalletSpinup.tsx b/src/components/organization/walletCommonComponents/WalletSpinup.tsx index 496bc2518..77e106583 100644 --- a/src/components/organization/walletCommonComponents/WalletSpinup.tsx +++ b/src/components/organization/walletCommonComponents/WalletSpinup.tsx @@ -1,5 +1,5 @@ import { apiStatusCodes, storageKeys } from '../../../config/CommonConstant'; -import { getFromLocalStorage, passwordEncryption } from '../../../api/Auth'; +import { getFromLocalStorage } from '../../../api/Auth'; import { createDid, getOrganizationById, @@ -93,6 +93,7 @@ const WalletSpinup = (props: { fetchOrganizationDetails() }, []); + const onRadioSelect = (type: string) => { setAgentType(type); }; diff --git a/src/pages/organizations/verification/verify-credentials/email/index.astro b/src/pages/organizations/verification/verify-credentials/email/index.astro new file mode 100644 index 000000000..49f7c7bc9 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/index.astro @@ -0,0 +1,14 @@ +--- +import LayoutSidebar from '../../../../../app/LayoutSidebar.astro'; +import { pathRoutes } from '../../../../../config/pathRoutes'; +import { checkUserSession } from '../../../../../utils/check-session'; + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +const route: string = pathRoutes.auth.sinIn +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/index.astro new file mode 100644 index 000000000..c95f548f5 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/index.astro @@ -0,0 +1,14 @@ +--- +import LayoutSidebar from "../../../../../../../app/LayoutSidebar.astro"; +import EmailAttributesSelection from "../../../../../../../components/Verification/EmailAttributesSelection"; +import { checkUserSession } from "../../../../../../../utils/check-session"; + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/verification-email/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/verification-email/index.astro new file mode 100644 index 000000000..aa8a0c183 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/attributes/verification-email/index.astro @@ -0,0 +1,14 @@ +--- +import LayoutSidebar from "../../../../../../../../app/LayoutSidebar.astro"; +import EmailVerification from "../../../../../../../../components/Verification/EmailVerification"; +import { checkUserSession } from "../../../../../../../../utils/check-session"; + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/index.astro new file mode 100644 index 000000000..5503c6b90 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/index.astro @@ -0,0 +1,14 @@ +--- +import LayoutSidebar from "../../../../../../../../app/LayoutSidebar.astro"; +import EmailAttributesSelection from "../../../../../../../../components/Verification/EmailAttributesSelection"; +import { checkUserSession } from "../../../../../../../../utils/check-session"; + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/verification-email/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/verification-email/index.astro new file mode 100644 index 000000000..cd4f921c5 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/attributes/verification-email/index.astro @@ -0,0 +1,15 @@ +--- +import LayoutSidebar from "../../../../../../../../../app/LayoutSidebar.astro"; +import EmailVerification from "../../../../../../../../../components/Verification/EmailVerification"; +import { checkUserSession } from "../../../../../../../../../utils/check-session"; + + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/index.astro new file mode 100644 index 000000000..9d224c9e5 --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/cred-defs/index.astro @@ -0,0 +1,17 @@ +--- +import LayoutSidebar from "../../../../../../../app/LayoutSidebar.astro"; +import EmailCredDefSelection from "../../../../../../../components/Verification/EmailCredDefSelection"; +import { pathRoutes } from "../../../../../../../config/pathRoutes"; +import { checkUserSession } from "../../../../../../../utils/check-session"; + + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +const route: string = pathRoutes.auth.sinIn +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + + diff --git a/src/pages/organizations/verification/verify-credentials/email/schemas/index.astro b/src/pages/organizations/verification/verify-credentials/email/schemas/index.astro new file mode 100644 index 000000000..4f1d3bb1d --- /dev/null +++ b/src/pages/organizations/verification/verify-credentials/email/schemas/index.astro @@ -0,0 +1,16 @@ +--- +import LayoutSidebar from "../../../../../../app/LayoutSidebar.astro"; +import EmailSchemaSelection from "../../../../../../components/Verification/EmailSchemaSelection"; +import { pathRoutes } from "../../../../../../config/pathRoutes"; +import { checkUserSession } from "../../../../../../utils/check-session"; + +const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname}); +const route: string = pathRoutes.auth.sinIn +if (!response.authorized) { + return Astro.redirect(response.redirect); +} +--- + + + +