mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +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>
|
<ContentItem>
|
||||||
<Input
|
<Input
|
||||||
label={t("placeholder.label")}
|
label={t("placeholder.label")}
|
||||||
|
error={!!errors.label}
|
||||||
{...register("label", validationRules.label)}
|
{...register("label", validationRules.label)}
|
||||||
autoFocus
|
autoFocus
|
||||||
helperText={errors.label ? errors.label.message : null}
|
helperText={errors.label ? errors.label.message : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user