refactor: Rename custom hooks for consistency and clarity
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled

This commit is contained in:
2025-12-14 19:32:18 -08:00
parent f9115fdb73
commit d3e546d02f
7 changed files with 28 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ import type { MasterGroceryItem } from '../types';
* A custom hook to manage all state and logic related to a user's watched items.
* It encapsulates API calls and state updates for adding and removing items.
*/
export const useWatchedItems = () => {
const useWatchedItemsHook = () => {
const { user } = useAuth();
// Get the watched items and the global setter from the DataContext.
const { watchedItems, setWatchedItems } = useUserData();
@@ -59,4 +59,6 @@ export const useWatchedItems = () => {
removeWatchedItem,
error,
};
};
};
export { useWatchedItemsHook as useWatchedItems };