diff --git a/components/Calendar.js b/components/Calendar.js index bab65a7e..51b8ea5e 100644 --- a/components/Calendar.js +++ b/components/Calendar.js @@ -383,4 +383,4 @@ const renderDays = () => { ); }; -export default Calendar; +export default Calendar; \ No newline at end of file diff --git a/screens/CategoryTasksView.js b/screens/CategoryTasksView.js index afed6615..e38ed45a 100644 --- a/screens/CategoryTasksView.js +++ b/screens/CategoryTasksView.js @@ -27,9 +27,15 @@ const CategoryTasksView = ({ route, navigation }) => { return () => unsubscribe(); }, [category, userID]); + // Set navigation options dynamically + useEffect(() => { + navigation.setOptions({ + headerTitle: `${category} Active Tasks` + }); + }, [category, navigation]); + return ( - {`${category} Active Tasks`} item.id.toString()} diff --git a/services/AuthAPI.js b/services/AuthAPI.js index 34768846..12280112 100644 --- a/services/AuthAPI.js +++ b/services/AuthAPI.js @@ -17,7 +17,7 @@ import { deleteDoc, collection, } from "firebase/firestore"; - +import eventEmitter from "../components/EventEmitter"; import { initializeAuth, getReactNativePersistence } from "firebase/auth"; import AsyncStorage from "@react-native-async-storage/async-storage"; @@ -582,4 +582,4 @@ export const cleanUserData = async () => { }; // Export the AsyncStorage getData function if needed elsewhere -export { getData }; +export { getData }; \ No newline at end of file