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

develop to qa #632

Merged
merged 24 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
66e1a37
feat: support multiple did methods
bhavanakarwade Mar 11, 2024
c2c5f35
Merge branch 'develop' of https://github.com/credebl/studio into feat…
pranalidhanavade Mar 12, 2024
50fa053
fix: sonarcloud issues
pranalidhanavade Mar 12, 2024
a914032
fix: sonarlint issues
pranalidhanavade Mar 12, 2024
5e7eede
fix: resolved sonarlint issues
pranalidhanavade Mar 12, 2024
773ba1a
feat: support multiple did methods (#620)
bhavanakarwade Mar 12, 2024
9b0cdda
fix: resolved sonarcloud issues
pranalidhanavade Mar 12, 2024
47ed268
Merge branch 'develop' of https://github.com/credebl/studio into feat…
pranalidhanavade Mar 12, 2024
3f59ecc
Worked on the refresh token implementation
nishad-ayanworks Mar 13, 2024
860394d
Merge branch 'develop' of https://github.com/credebl/studio into auth…
nishad-ayanworks Mar 13, 2024
b73045d
removed unnecessary encryption while storing token in cookies
nishad-ayanworks Mar 14, 2024
deac1cc
cosmetic changes
nishad-ayanworks Mar 14, 2024
90b79fb
Merge pull request #624 from credebl/auth-refresh-token
nishad-ayanworks Mar 15, 2024
eb414b7
feat: did web functionality
bhavanakarwade Mar 18, 2024
ac6e30f
Handled the error validations in encrypt and decrypt of data
nishad-ayanworks Mar 18, 2024
03b517a
refactored auth.ts for encrypt and decrypt data
nishad-ayanworks Mar 18, 2024
665bfc4
Merge pull request #626 from credebl/fix-utf8-data-issue
nishad-ayanworks Mar 18, 2024
a8ebd1b
Merge pull request #623 from credebl/feat/multiple-did-methods
bhavanakarwade Mar 19, 2024
366ca13
Merge branch 'develop' of https://github.com/credebl/studio into deve…
bhavanakarwade Mar 19, 2024
69e12c5
Merge branch 'develop' of https://github.com/credebl/studio into deve…
nishad-ayanworks Mar 20, 2024
ed11f5b
Merge branch 'develop-to-qa' of https://github.com/credebl/studio int…
nishad-ayanworks Mar 20, 2024
da7e9aa
refactoring in wallet spinup
nishad-ayanworks Mar 20, 2024
c1d1ee4
cosmetic changes in wallet spinup
nishad-ayanworks Mar 20, 2024
c44413b
cosmetic changesin Field
nishad-ayanworks Mar 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: sonarlint issues
Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>
  • Loading branch information
pranalidhanavade committed Mar 12, 2024
commit a914032d6881f429ddf278468d741a3ebb5484e0
40 changes: 7 additions & 33 deletions src/components/organization/WalletSpinup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import {
import { AlertComponent } from '../AlertComponent';
import CopyDid from '../../commonComponents/CopyDid';
import { DidMethod } from '../../common/enums';
import GenerateBtnPolygon from './walletCommonComponents/GenerateBtnPolygon'
import GenerateBtnPolygon from './walletCommonComponents/GenerateBtnPolygon';
import SetPrivateKeyValue from './walletCommonComponents/SetPrivateKeyValue';


interface Values {
Expand Down Expand Up @@ -392,22 +393,9 @@ const SharedAgentForm = ({
)}

{formikHandlers.values.method === DidMethod.POLYGON && (
<>
<div className="my-3 relative">
<div className="mt-4">
<Label value="Private Key" />
<span className="text-red-500 text-xs">*</span>
</div>
</div>
<Field
id="endpoint"
name="endpoint"
className="truncate bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
value={privateKeyValue}
onChange={(e) => setPrivateKeyValue(e.target.value)}
placeholder="Enter private key"
/>
</>

<SetPrivateKeyValue setPrivateKeyValue={(val:string)=>setPrivateKeyValue(val)} privateKeyValue={privateKeyValue}/>

)}

{formikHandlers.values.method === DidMethod.WEB && (
Expand Down Expand Up @@ -732,22 +720,8 @@ const SharedAgentForm = ({
)}

{formikHandlers.values.method === DidMethod.POLYGON && (
<>
<div className="my-3 relative">
<div className="mt-4">
<Label value="Private Key" />
<span className="text-red-500 text-xs">*</span>
</div>
</div>
<Field
id="endpoint"
name="endpoint"
className="truncate bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
value={privateKeyValue}
onChange={(e) => setPrivateKeyValue(e.target.value)}
placeholder="Enter private key"
/>
</>

<SetPrivateKeyValue setPrivateKeyValue={(val:string)=>setPrivateKeyValue(val)} privateKeyValue={privateKeyValue}/>
)}

{formikHandlers.values.method === DidMethod.WEB && (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from "react"
import {Label } from 'flowbite-react';
import { Field} from 'formik';


interface IProps {
setPrivateKeyValue:(val:string)=>void
privateKeyValue:string
}

const SetPrivateKeyValue = ({setPrivateKeyValue, privateKeyValue}:IProps) =>(
<>
<div className="my-3 relative">
<div className="mt-4">
<Label value="Private Key" />
<span className="text-red-500 text-xs">*</span>
</div>
</div>
<Field
id="endpoint"
name="endpoint"
className="truncate bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-11"
value={privateKeyValue}
onChange={(e) => setPrivateKeyValue(e.target.value)}
placeholder="Enter private key"
/>
</>
)
export default SetPrivateKeyValue;
Loading