Skip to content

Commit

Permalink
Fix TextField adornments warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Marcellin committed Nov 14, 2024
1 parent d40f7af commit d2913cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/inputs/reactHookForm/text/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function TextInput({
{...genHelperPreviousValue(previousValue!, adornment)}
{...genHelperError(error?.message)}
{...formProps}
{...finalAdornment}
{...(adornment && { ...finalAdornment })}
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { Input } from '../../../../utils/types/types';
export type TextFieldWithAdornmentProps = TextFieldProps & {
// variant already included in TextFieldProps
value: Input; // we override the default type of TextFieldProps which is unknown
adornmentPosition: string;
adornmentText: string;
adornmentPosition?: string;
adornmentText?: string;
handleClearValue?: () => void;
};

Expand Down

0 comments on commit d2913cc

Please sign in to comment.