Skip to content

Commit

Permalink
Merge pull request #631 from bandada-infra/feat/dashboard/clear-mult-…
Browse files Browse the repository at this point in the history
…credentials

feat: add clear button to clear multiple credentials input
  • Loading branch information
vplasencia authored Dec 12, 2024
2 parents eb0bfa1 + f060a7c commit abeb1ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ export default function AccessModeStep({
}
}, [_accessMode, _validator, _validators])

const onClear = () => {
setCredentials(undefined)
setValidators([])
setExpression([])
}

return (
<>
<HStack>
Expand Down Expand Up @@ -621,6 +627,14 @@ export default function AccessModeStep({
)}

<HStack justify="right" pt="20px">
<Button
variant="solid"
colorScheme="tertiary"
hidden={_accessMode !== "multiple_credentials"}
onClick={onClear}
>
Clear
</Button>
<Button variant="solid" colorScheme="tertiary" onClick={onBack}>
Back
</Button>
Expand Down
Binary file modified apps/docs/static/img/tutorial/offchain-mult-credentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit abeb1ed

Please sign in to comment.