fix(frontend): add input error attribute

This commit is contained in:
yassinedorbozgithub 2025-02-03 16:36:00 +01:00
parent fce6320382
commit 0681893b56

View File

@ -94,6 +94,7 @@ export const CategoryForm: FC<ComponentFormProps<ICategory>> = ({
<ContentItem>
<Input
label={t("placeholder.label")}
error={!!errors.label}
{...register("label", validationRules.label)}
autoFocus
helperText={errors.label ? errors.label.message : null}