error is color red

This commit is contained in:
proddy
2025-11-08 15:26:54 +01:00
parent 9a1dd5bb98
commit 026ea4450e

View File

@@ -23,7 +23,9 @@ const ValidatedTextField: FC<ValidatedTextFieldProps> = ({
<> <>
<TextField error={!!errors} {...rest} aria-label="Error" /> <TextField error={!!errors} {...rest} aria-label="Error" />
{errors?.map((e) => ( {errors?.map((e) => (
<FormHelperText key={e.message}>{e.message}</FormHelperText> <FormHelperText key={e.message} sx={{ color: 'rgb(250, 95, 84)' }}>
{e.message}
</FormHelperText>
))} ))}
</> </>
); );