Wizard: Refactor Description input using new component
This commit refactors the Description field by replacing HookValidatedInput with the new ValidatedInputAndTextArea component. It fixes a bug where the validation icon remained visible after the user cleared the Description field.
This commit is contained in:
parent
29c290abf8
commit
6afaf49452
4 changed files with 14 additions and 12 deletions
|
|
@ -49,6 +49,10 @@ export const isSnapshotValid = (dateString: string) => {
|
|||
};
|
||||
|
||||
export const isBlueprintDescriptionValid = (blueprintDescription: string) => {
|
||||
if (!blueprintDescription) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return blueprintDescription.length <= 250;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue