From 167f5ca470733bd42ffbfe5dfbad9c154a8746d8 Mon Sep 17 00:00:00 2001 From: Karine Brandelli Date: Thu, 29 Feb 2024 14:28:46 -0300 Subject: [PATCH] fix: input props type --- src/core/inputs/text-field/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/inputs/text-field/index.tsx b/src/core/inputs/text-field/index.tsx index 8a2548ab..6c222cce 100644 --- a/src/core/inputs/text-field/index.tsx +++ b/src/core/inputs/text-field/index.tsx @@ -20,7 +20,10 @@ import { makeStyles } from '@material-ui/core/styles' import { when, is, pipe, split, map, zipObj, reject, propEq } from 'ramda' import { default as styled } from 'styled-components' import type { DefaultProps } from '../../types' -import type { TextFieldProps as MuiTextFieldProps } from '@material-ui/core' +import type { + InputBaseComponentProps, + TextFieldProps as MuiTextFieldProps +} from '@material-ui/core' import { Clear, Help as ContactSupportIcon, Edit, Save } from '@/icons' import { IconButton } from '../icon-button' import { theme } from '@/theme' @@ -55,9 +58,7 @@ export interface TextFieldProps value?: string | number variant?: 'standard' | 'outlined' | 'filled' inputRef?: Ref - inputProps?: { - maxLength?: number - } & object + inputProps?: InputBaseComponentProps InputProps?: object InputLabelProps?: object SelectProps?: object