Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/credebl/studio into refa…
Browse files Browse the repository at this point in the history
…ctor-dasboard-memberlist
  • Loading branch information
16-karan committed Oct 19, 2023
2 parents 1185012 + 0437408 commit 2db0b24
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/api/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const getProofAttributes=async (proofId:string)=>{

export const getCredentialDefinitionsForVerification = async (schemaId: string) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url= `${apiRoutes.organizations.root}/${orgId}${apiRoutes.schema.getCredDefBySchemaId}/${schemaId}/cred-defs`;
const url= `${apiRoutes.Verification.verificationCredDef}/${schemaId}`;

const axiosPayload = {
url,
Expand Down
1 change: 0 additions & 1 deletion src/commonComponents/DeviceDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const DeviceDetails = (props: { deviceFriendlyName: string, createDateTime: stri
className="p-1 border border-gray-400 rounded hover:bg-gray-100 dark:hover:bg-black dark:text-white dark:hover:text-white"
onClick={(e) => {
e.preventDefault();
props.refreshList()
setOpenEditModel(true)
}}
>
Expand Down
1 change: 0 additions & 1 deletion src/components/Authentication/SignInUser.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../common/global.css'

import * as yup from 'yup';
import { Button, Label} from 'flowbite-react';
import { Field, Form, Formik } from 'formik';
Expand Down
1 change: 0 additions & 1 deletion src/components/Authentication/SignInUserPasskey.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../common/global.css'

import { Alert, Button } from 'flowbite-react';
import {
UserSignInData,
Expand Down
2 changes: 2 additions & 0 deletions src/components/Profile/AddPasskey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ const AddPasskey = () => {
: [];
if (data?.data?.length === 1) {
setDisableFlag(true);
} else {
setDisableFlag(false);
}
setDeviceList(deviceDetails);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ const UserDashBoard = () => {

<div className="">
<div className="p-4 mb-4 bg-white border border-gray-200 rounded-lg shadow-sm dark:border-gray-700 sm:p-6 dark:bg-gray-800 xl:mb-0">
<div className="flex items-start justify-start mb-4">
<div className="items-start justify-start mb-4">
<h3 className="text-xl font-semibold text-gray-900 dark:text-white ">
Recent Activity
</h3>
{activityList && activityList?.length === 0 && (
<div className="px-2 py-1 text-black-800 text-xs">
Looks like there are no activities to display at the moment.
<div className="py-1 text-black-800 dark:text-white text-xs flex items-center" >
Looks like there is no activity to display at the moment.
</div>
)}
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Verification/CredDefSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ const CredDefSelection = () => {

const getCredDefs = async (schemaId: string) => {
setLoading(true)
const response = await getCredentialDefinitionsForVerification(schemaId,31);
const response = await getCredentialDefinitionsForVerification(schemaId);

const { data } = response as AxiosResponse

if (data?.statusCode === apiStatusCodes.API_STATUS_SUCCESS) {
const credDefs = data?.data?.data.map((ele: CredDefData) => {
const credDefs = data?.data?.map((ele: CredDefData) => {
return {
data: [{ data: ele?.tag ? ele?.tag : 'Not available' }, { data: ele?.credentialDefinitionId ? ele?.credentialDefinitionId : 'Not available' },
{ data: ele?.revocable === true ? <span className="text-blue-700 dark:text-white">Yes</span> : <span className="text-cyan-500 dark:text-white">No</span> },
Expand Down Expand Up @@ -99,9 +98,10 @@ const CredDefSelection = () => {
if (credDefs?.length === 0) {
setError('No Data Found')
}

setLoading(false)
setCredDefList(credDefs)
} else {
setLoading(false)
setError(response as string)
}

Expand Down
1 change: 1 addition & 0 deletions src/config/apiRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const apiRoutes = {
verifyCredential: '/proofs',
presentationVerification: '/proofs',
proofRequestAttributesVerification: '/proofs',
verificationCredDef: '/verifiation/cred-defs'
},
Agent: {
checkAgentHealth: '/agents/health',
Expand Down

0 comments on commit 2db0b24

Please sign in to comment.