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:
Michal Gold 2025-03-16 13:45:26 +02:00 committed by Klara Simickova
parent 29c290abf8
commit 6afaf49452
4 changed files with 14 additions and 12 deletions

View file

@ -49,6 +49,10 @@ export const isSnapshotValid = (dateString: string) => {
};
export const isBlueprintDescriptionValid = (blueprintDescription: string) => {
if (!blueprintDescription) {
return true;
}
return blueprintDescription.length <= 250;
};