Skip to content

Commit

Permalink
cosmetic changes in wallet spinup
Browse files Browse the repository at this point in the history
Signed-off-by: Nishad <[email protected]>
  • Loading branch information
nishad-ayanworks committed Mar 20, 2024
1 parent da7e9aa commit c1d1ee4
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions src/components/organization/WalletSpinup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,28 +355,13 @@ const SharedAgentForm = ({
</div>
)}

{generatedKeys &&
formikHandlers.values.method === DidMethod.POLYGON && (

<TokenWarningMessage />
)}
{generatedKeys && formikHandlers.values.method === DidMethod.POLYGON && (<TokenWarningMessage />)}

{formikHandlers.values.method === DidMethod.POLYGON && (
{formikHandlers.values.method === DidMethod.POLYGON && (<SetPrivateKeyValue setPrivateKeyValue={(val:string)=>setPrivateKeyValue(val)} privateKeyValue={privateKeyValue}/>)}

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

)}
{formikHandlers.values.method === DidMethod.WEB && (<SetDomainValueInput setDomainValue={(val:string)=>setDomainValue(val)} domainValue={domainValue}/>)}

{formikHandlers.values.method === DidMethod.WEB && (


<SetDomainValueInput setDomainValue={(val:string)=>setDomainValue(val)} domainValue={domainValue}/>

)}

{formikHandlers.values.method !== DidMethod.POLYGON &&
formikHandlers.values.method !== DidMethod.KEY &&
formikHandlers.values.method !== DidMethod.WEB && (
{formikHandlers.values.method !== DidMethod.POLYGON && formikHandlers.values.method !== DidMethod.KEY && formikHandlers.values.method !== DidMethod.WEB && (
<div className="my-3 relative">
<label
htmlFor="ledger"
Expand All @@ -402,12 +387,8 @@ const SharedAgentForm = ({
),
)}
</select>
{formikHandlers?.errors?.ledger &&
formikHandlers?.touched?.ledger && (
<span className="absolute botton-0 text-red-500 text-xs">
{formikHandlers?.errors?.ledger}
</span>
)}
{formikHandlers?.errors?.ledger && formikHandlers?.touched?.ledger && (
<span className="absolute botton-0 text-red-500 text-xs">{formikHandlers?.errors?.ledger}</span>)}
</div>
)}
{formikHandlers.values.method !== DidMethod.WEB &&
Expand Down

0 comments on commit c1d1ee4

Please sign in to comment.