Skip to content

Commit

Permalink
fix(FilterAutoCompleteInput): correct align icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Oct 11, 2023
1 parent 0798dcf commit 39c3de5
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ const StyledInputWrapper = styled.div`
margin-bottom: ${gapS};
`;

const StyledAutoCompleteInput = styled(AutoCompleteInput)`
display: inline-block;
`;

interface FilterAutoCompleteInputProps extends React.ComponentProps<typeof AutoCompleteInput> {
placeholder?: never;
iconLeft?: never;
Expand All @@ -22,11 +18,7 @@ interface FilterAutoCompleteInputProps extends React.ComponentProps<typeof AutoC
export const FilterAutoCompleteInput: React.FC<FilterAutoCompleteInputProps> = (props) => {
return (
<StyledInputWrapper>
<StyledAutoCompleteInput
placeholder={tr('Search...')}
iconLeft={<IconSearchOutline size="s" />}
{...props}
/>
<AutoCompleteInput placeholder={tr('Search...')} iconLeft={<IconSearchOutline size="s" />} {...props} />
</StyledInputWrapper>
);
};

0 comments on commit 39c3de5

Please sign in to comment.