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:
Michal Gold 2025-03-13 18:36:29 +02:00 committed by Klara Simickova
parent 45669b06b8
commit ea40280f1c

View file

@ -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 || ''}