chore: Delete submit button search-products
This commit is contained in:
@@ -47,15 +47,14 @@ const Catalog = () => {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.layout}>
|
<div className={styles.layout}>
|
||||||
<section className={styles.catalog}>
|
<section className={styles.catalog}>
|
||||||
<form onSubmit={e => e.preventDefault()}>
|
<form>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={filterText}
|
value={filterText}
|
||||||
placeholder="Buscar"
|
placeholder="Buscar"
|
||||||
onChange={
|
onChange={
|
||||||
(event) => setFilterText(event.target.value)}
|
(event) => setFilterText(event.target.value)}
|
||||||
id="filter-products"/>
|
id="searchbox"/>
|
||||||
<button type="submit">Buscar</button>
|
|
||||||
</form>
|
</form>
|
||||||
<ProductCards products={filteredProducts} addProductLine={addProductLine}/>
|
<ProductCards products={filteredProducts} addProductLine={addProductLine}/>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user