(props: Props<T>)
| 7 | } & UseControllerProps<T> & TextFieldProps |
| 8 | |
| 9 | export default function AppTextInput<T extends FieldValues>(props: Props<T>) { |
| 10 | const {fieldState, field} = useController({...props}); |
| 11 | |
| 12 | return ( |
| 13 | <TextField |
| 14 | {...props} |
| 15 | {...field} |
| 16 | multiline={props.multiline} |
| 17 | rows={props.rows} |
| 18 | type={props.type} |
| 19 | fullWidth |
| 20 | value={field.value || ''} |
| 21 | variant="outlined" |
| 22 | error={!!fieldState.error} |
| 23 | helperText={fieldState.error?.message} |
| 24 | /> |
| 25 | ) |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected