mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-17 06:39:25 +08:00
Polished products page search
This commit is contained in:
parent
7dc3729bec
commit
435a576c15
1 changed files with 5 additions and 2 deletions
|
@ -54,8 +54,11 @@ export default function ViewManager(props: ProductList) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<TableView
|
<TableView
|
||||||
Products={props.Products.filter((Product) =>
|
Products={props.Products.filter(
|
||||||
Product.name.toLowerCase().includes(searchTerm)
|
(Product) =>
|
||||||
|
Product.name.toLowerCase().includes(searchTerm) ||
|
||||||
|
Product.date_added.toLowerCase().includes(searchTerm) ||
|
||||||
|
Product.id.toString().includes(searchTerm)
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue