From 8e295367d7c992894ca2ac5c2175926e0ed3ab40 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Mon, 10 May 2021 17:02:24 -0700 Subject: Fixed comment counting situation for moments --- src/screens/profile/MomentCommentsScreen.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/screens') diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx index 1a913e58..bf07ae30 100644 --- a/src/screens/profile/MomentCommentsScreen.tsx +++ b/src/screens/profile/MomentCommentsScreen.tsx @@ -32,8 +32,6 @@ type MomentCommentContextType = { ) => void; shouldUpdateAllComments: boolean; setShouldUpdateAllComments: (available: boolean) => void; - commentsLength: number; - setCommentsLength: (length: number) => void; }; export const CommentContext = React.createContext( @@ -68,8 +66,6 @@ const MomentCommentsScreen: React.FC = ({route}) => { setCommentTapped, shouldUpdateAllComments, setShouldUpdateAllComments, - commentsLength, - setCommentsLength, }}> @@ -81,6 +77,7 @@ const MomentCommentsScreen: React.FC = ({route}) => { shouldUpdate={shouldUpdateAllComments} setShouldUpdate={setShouldUpdateAllComments} isThread={false} + setCommentsLengthParent={setCommentsLength} />