Add a Material UI Select component to the header next to the search bar. The user should be able to select a single tag from the dropdown. When a tag is selected, only display leads that are lableled with that tag. The user should be able to enter query for both a search term and a tag.
To get all available tags, you can call the GET /tags endpoint. To filter leads by tag, you can add a query parameter tag=<tag name> to the url for the GET /leads endpoint.
Ex:
GET /leads?page=1&perpage=100&tag=Veterans
GET /leads?page=1&perpage=100&tag=Veterans&search=wish
Add a Material UI Select component to the header next to the search bar. The user should be able to select a single tag from the dropdown. When a tag is selected, only display leads that are lableled with that tag. The user should be able to enter query for both a search term and a tag.
To get all available tags, you can call the
GET /tags
endpoint. To filter leads by tag, you can add a query parametertag=<tag name>
to the url for theGET /leads
endpoint.Ex:
GET /leads?page=1&perpage=100&tag=Veterans
GET /leads?page=1&perpage=100&tag=Veterans&search=wish