wizard: add support of TextArea for ssh_key field
this commit add support of TextArea for ssh_key field
This commit is contained in:
parent
7d34d30b08
commit
771a582916
8 changed files with 60 additions and 41 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue