Remove journalPostsCount nav param

This commit is contained in:
Johannes Klein committed 2026-07-16 20:19:33 +02:00
1 parent a79f2c0c30
commit 8a5efc3c7c
3 files changed
+4 -6

No files matched your search

+1 -2
View File
@@ -8,7 +8,7 @@ import ProjectPosts from "./ProjectPosts";
const Journal = ( ) => {
const { params } = useRoute<TabStackScreenProps<"Journal">["route"]>( );
const {
journalPostsCount, projectIcon, projectId, projectTitle, userId, userIcon, userLogin,
projectIcon, projectId, projectTitle, userId, userIcon, userLogin,
} = params || {};
console.log( "userId", userId );
@@ -26,7 +26,6 @@ const Journal = ( ) => {
// TODO: posts for one user
if ( userLogin ) {
console.log( journalPostsCount );
return null;
}
@@ -146,7 +146,6 @@ const UserProfile = ( ) => {
const onJournalPostsPressed = ( ) => {
navigation.navigate( "Journal", {
journalPostsCount: user?.journal_posts_count,
userIcon: user?.icon_url,
userId: user?.id,
userLogin: user?.login,
+3 -3
View File
@@ -327,8 +327,9 @@ export type BaseTabStackParamList = {
};
// From UserProfile
// {
// userLogin: user?.login,
// journalPostsCount: user?.journal_posts_count,
// userId: user?.id,
// userIcon: user?.login,
// userLogin: user?.icon_url,
// }
// From ProjectDetails
// {
@@ -343,7 +344,6 @@ export type BaseTabStackParamList = {
projectIcon?: string;
projectId?: number;
projectTitle?: string;
journalPostsCount?: number;
} | undefined;
Debug: undefined;
UILibrary: undefined;