Skip to content

Commit

Permalink
refactor: signin and ecosystem flow
Browse files Browse the repository at this point in the history
Signed-off-by: sanjay-k1910 <sanjay.khatal@ayanworks.com>
  • Loading branch information
sanjay-k1910 committed Oct 11, 2023
1 parent f3ae44c commit 037c388
Show file tree
Hide file tree
Showing 8 changed files with 238 additions and 198 deletions.
5 changes: 3 additions & 2 deletions src/common/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ export enum IssueCredentialUserText {

export enum EndorsementType {
schema = 'schema',
credDef = 'credDef'
credDef = 'credential-definition'
}

export enum EndorsementStatus {
all = "all",
approved = "approved",
rejected = "rejected",
requested = "requested"
requested = "requested",
submitted = "submitted"
}

export enum EcosystemRoles {
Expand Down
1 change: 1 addition & 0 deletions src/components/Authentication/SignInUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const SignInUser = () => {

const saveEmail = async (values: emailValue) => {
setEmail(values)
await localStorage.clear();
setCurrentComponent('password');
await setToLocalStorage(storageKeys.LOGIN_USER_EMAIL, values.email);
setIsPasskeySuccess(true);
Expand Down
1 change: 0 additions & 1 deletion src/components/CreateEcosystemOrgModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { asset } from '../../lib/data.js';
import { createOrganization } from "../../api/organization";
import { getFromLocalStorage } from "../../api/Auth";
import { createEcosystems } from "../../api/ecosystem";
import React from "react";
import { getOrgDetails } from "../../config/ecosystem";

interface Values {
Expand Down
Loading

0 comments on commit 037c388

Please sign in to comment.