Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced useDispatch w. useQuery/request: Users (src/Components/Users…
…/**) [5 out of 5 components] (#6596) * replaced getUserDetails and getUserListSkills actions with useQuery * replaced partialUpdateUser action with request * replaced updatePassword action with request * replaced dispatch with useQuery in UserFilter.tsx * Bug Fix: UserFilter tried fetching district when district_id was not available * addUser and checkUsername action replaced with request * replaced useDispatch with request in UserAdd component * replaced useDispatch with useQuery and request in SkillsSlideOver * replaced useDispatch with useQuery and request in ManageUsers * solved issue #6652 | passed user skills as props to SkillSelect * removed unnecessary console logs * re-added showAll as dependency to skillSearch * removed unnecessary console logs * replaced fetchDistrict request with useQuery and removed isLoading * fixed error notification in ManageUsers * removed unnecessary useState from ManageUsers * code fixes in SkillsSlideOver * code fixes in UserAdd * code fix in UserFilter * code fix in UserProfile * removed redundant code * added proper types and fixed redundant code * removed redundant fireRequest actions * fix http 301 redirect due to missing trailing slash * Update TRes of userListFacility in src/Redux/api.tsx Co-authored-by: Rithvik Nishad <[email protected]> * resolved imports --------- Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Mohammed Nihal <[email protected]>
- Loading branch information