Feature implement Search functionality #19
Labels
♟️ Dependent ticket
This ticket depends on something else being completed first this sprint
🧩 Feature
🐂 Size Medium
1-4 hours
📅 Week 3
Assigned during Week 3 of this module
Depends on #18
Instructions:
Still in the
<Bookings />
component, implement thesearch
method. It must use thesearchVal
variable (that you just passed from the<Search />
component) to filter the search results. The filter function should return bookings wherefirstName
orsurname
matchsearchVal
. Once filtered, use thesetBookings
function to update the results rendered in<SearchResults />
.Test:
Verify that when you enter an existing first name or surname and submit the form, the results are filtered accordingly in the customers table.
The text was updated successfully, but these errors were encountered: