Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const SectionInner = styled.div`
margin-left: auto;
margin-right: auto;
max-width: 120rem;
width: calc(100% - 4rem);
display: flex;
justify-content: space-between;
max-width: 168rem;
@media (min-width: 700px) {
width: calc(100% - 8rem);
}
`;
const SearchForm = styled.form`
margin: 0;
position: relative;
width: 100%;
align-items: stretch;
display: flex;
flex-wrap: nowrap;
@media (min-width: 700px) {
position: relative;
width: 100%;
}
`;
const SearchInput = styled.input`
background: none;
border: none;
Search for:
<input placeholder="Search ..." type="search">
<button type="submit">Search</button>
);
};
export default connect(SearchForm);
const Form = styled.form`
align-items: stretch;
display: flex;
flex-wrap: nowrap;
margin: 0 0 -0.8rem -0.8rem;
justify-content: center;
margin-top: 3rem;
`;
const Label = styled.label`
align-items: stretch;
display: flex;
font-size: inherit;
margin: 0;
width: 100%;
`;
const SectionInner = styled.div`
margin-left: auto;
margin-right: auto;
max-width: 120rem;
width: calc(100% - 4rem);
display: flex;
justify-content: space-between;
max-width: 168rem;
@media (min-width: 700px) {
width: calc(100% - 8rem);
}
`;
const SearchForm = styled.form`
margin: 0;
position: relative;
width: 100%;
align-items: stretch;
display: flex;
flex-wrap: nowrap;
@media (min-width: 700px) {
position: relative;
width: 100%;
}
`;
const SearchInput = styled.input`
background: none;
border: none;
type="search"
defaultValue={searchQuery}
placeholder="Search ..."
ref={inputRef}
/>
Search
);
};
export default connect(SearchForm);
const Form = styled.form`
align-items: stretch;
display: flex;
flex-wrap: nowrap;
margin: 0 0 -0.8rem -0.8rem;
justify-content: center;
margin-top: 3rem;
`;
const Label = styled.label`
align-items: stretch;
display: flex;
font-size: inherit;
margin: 0;
width: 100%;
`;