Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
NickRubino12 committed Apr 23, 2024
1 parent 5cf3387 commit d4d3e79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@ const renderDays = () => {
);
};

export default Calendar;
export default Calendar;
8 changes: 7 additions & 1 deletion screens/CategoryTasksView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<View style={styles.container}>
<Text style={styles.title}>{`${category} Active Tasks`}</Text>
<FlatList
data={tasks}
keyExtractor={item => item.id.toString()}
Expand Down
4 changes: 2 additions & 2 deletions services/AuthAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -582,4 +582,4 @@ export const cleanUserData = async () => {
};

// Export the AsyncStorage getData function if needed elsewhere
export { getData };
export { getData };

0 comments on commit d4d3e79

Please sign in to comment.