Removed unnecessary wrapper

This commit is contained in:
Piotr Janosz
2019-07-19 14:08:58 +02:00
committed by fabioberger
parent d165bb2bb2
commit 7c72ac52e1

View File

@@ -22,23 +22,9 @@ export const SearchInput: React.FC<ISearchInputProps> = ({ isHome }) => (
console.log('searchState', searchState);
}}
>
<Wrapper isHome={isHome}>
<AutoComplete isHome={isHome} />
<Configure hitsPerPage={5} distinct={true} />
<Index indexName="0x_tools_test" />
<Index indexName="0x_guides_test" />
</Wrapper>
<AutoComplete isHome={isHome} />
<Configure hitsPerPage={5} distinct={true} />
<Index indexName="0x_tools_test" />
<Index indexName="0x_guides_test" />
</InstantSearch>
);
const Wrapper = styled.div<ISearchInputProps>`
width: 100%;
position: relative;
${({ isHome }) =>
isHome &&
`
max-width: 890px;
margin: 0 auto;
`};
`;