Wizard: Refactor SSH key input using ValidatedInputAndTextArea component
This commit refactors the SSH key field by replacing HookValidatedInput with the new ValidatedInputAndTextArea component. It also fixes a bug where the validation icon remained visible after the user cleared the SSH key field.
This commit is contained in:
parent
45669b06b8
commit
ea40280f1c
1 changed files with 1 additions and 2 deletions
|
|
@ -19,7 +19,6 @@ import {
|
|||
import { useUsersValidation } from '../../../utilities/useValidation';
|
||||
import {
|
||||
HookPasswordValidatedInput,
|
||||
HookValidatedInput,
|
||||
ValidatedInputAndTextArea,
|
||||
} from '../../../ValidatedInput';
|
||||
const UserInfo = () => {
|
||||
|
|
@ -93,7 +92,7 @@ const UserInfo = () => {
|
|||
/>
|
||||
</FormGroup>
|
||||
<FormGroup isRequired label="SSH key">
|
||||
<HookValidatedInput
|
||||
<ValidatedInputAndTextArea
|
||||
inputType={'textArea'}
|
||||
ariaLabel="public SSH key"
|
||||
value={userSshKey || ''}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue