Skip to content

Commit

Permalink
add credential type
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Nov 13, 2024
1 parent 0d6500a commit 5b19412
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,24 @@ export default function UpdateCredentials({
<>
{GetDiscover(schema)?.map(
(
credential: DiscoverCredential,
cred: DiscoverCredential,
index: number
) => {
return (
<>
<Button
onClick={() =>
onClick={() => {
setSelectedCredential(
index
)
}
setCredentials({
...credential,
credential_type:
cred.label,
})
}}
>
{credential.label}
{cred.label}
</Button>
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,12 @@ export default function CreateIntegration({
return (
<>
<Button
onClick={() =>
onClick={() =>{
setSelectedCredential(
index
)
setIntegration({...integration,credential_type:credential.label})
}
}
>
{credential.label}
Expand Down

0 comments on commit 5b19412

Please sign in to comment.