wizard: add support of TextArea for ssh_key field

this commit add support of TextArea for ssh_key field
This commit is contained in:
Michal Gold 2025-01-12 10:43:47 +02:00 committed by Lucas Garfield
parent 7d34d30b08
commit 771a582916
8 changed files with 60 additions and 41 deletions

View file

@ -19,7 +19,7 @@ import {
} from '../../../../store/wizardSlice';
import { useGenerateDefaultName } from '../../utilities/useGenerateDefaultName';
import { useDetailsValidation } from '../../utilities/useValidation';
import { HookValidatedInput } from '../../ValidatedTextInput';
import { HookValidatedInput } from '../../ValidatedInput';
const DetailsStep = () => {
const dispatch = useAppDispatch();
@ -29,14 +29,14 @@ const DetailsStep = () => {
useGenerateDefaultName();
const handleNameChange = (
_event: React.FormEvent<HTMLInputElement>,
_event: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>,
name: string
) => {
dispatch(changeBlueprintName(name));
};
const handleDescriptionChange = (
_event: React.FormEvent<HTMLInputElement>,
_event: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>,
description: string
) => {
dispatch(changeBlueprintDescription(description));