Shared:Components:TextInput: fix props
This commit is contained in:
parent
eaed4e0de1
commit
88eba1e159
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user