mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +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>
|
||||
<TableView
|
||||
Products={props.Products.filter((Product) =>
|
||||
Product.name.toLowerCase().includes(searchTerm)
|
||||
Products={props.Products.filter(
|
||||
(Product) =>
|
||||
Product.name.toLowerCase().includes(searchTerm) ||
|
||||
Product.date_added.toLowerCase().includes(searchTerm) ||
|
||||
Product.id.toString().includes(searchTerm)
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue