Shared:Components:TextInput: fix props

This commit is contained in:
Timofey Boyko 2023-12-20 18:03:17 +03:00
parent eaed4e0de1
commit 88eba1e159

View File

@ -12,7 +12,14 @@ const compare = (
};
export const TextInputPure = (props: TextInputProps) => {
return <StyledTextInput {...props} data-testid="text-input" />;
const { withBorder = true } = props;
return (
<StyledTextInput
{...props}
withBorder={withBorder}
data-testid="text-input"
/>
);
};
const TextInput = React.memo(TextInputPure, compare);