feat: connect search with input field search triggered by lens click and enter (MIN-63)
requested to merge feature/MIN-63-Connect-search-with-input-field-search-triggered-by-lens-click-and-enter into development
Objective:
Add the call to the search by clicking the lens or pressing Enter. API calls do not work when we do not change the input value after API calls or when some APIs have a pending status.
What has been done:
- Added
useSearchData
hook with API calls and status of queries - Added
usePrevious
hook - Added API call when lens button is clicked or Enter key is pressed
Additionally:
- added selector for drugs, chemicals, bioEntityContents, and miRNAs
- deleted
@types/images.d.ts
- deleted
renderComponentWithProvider
Edited by mateuszmiko