From 4fb96d6160de555fac9d06846993c963922e0e0c Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:12:40 -0300 Subject: [PATCH] refactor: add useQuery on profile_pictures endpoint (#3128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 (API/index.ts): Remove getProfilePictures function as it is no longer used 🔧 (use-get-profile-pictures.ts): Remove unused code related to fetching profile pictures 🔧 (use-preload-images.tsx): Refactor usePreloadImages hook to accept profilePictures as an argument 🔧 (profilePictureChooserComponent/index.tsx): Update usage of usePreloadImages hook to match new signature 🔧 (ProfilePictureForm/index.tsx): Refactor to use useGetProfilePicturesQuery hook instead of handleGetProfilePictures function