mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 20:38:32 +00:00
fix(frontend): add input error attribute
This commit is contained in:
parent
fce6320382
commit
0681893b56
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user