Skip to content

Commit

Permalink
Fix TextField adornments warnings (#637)
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Marcellin <[email protected]>
  • Loading branch information
Meklo authored Nov 20, 2024
1 parent 654ea09 commit eb2ad28
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 eb2ad28

Please sign in to comment.