diff options
| author | Brian Kim <brian@tagg.id> | 2021-05-10 17:02:24 -0700 |
|---|---|---|
| committer | Brian Kim <brian@tagg.id> | 2021-05-10 17:02:24 -0700 |
| commit | 8e295367d7c992894ca2ac5c2175926e0ed3ab40 (patch) | |
| tree | f5f2fa4a3c5a3062ff7faa67045eb56a24dbe447 /src/screens/profile | |
| parent | 49136f4056cb40f43d282d534aacf27076f47d8b (diff) | |
Fixed comment counting situation for moments
Diffstat (limited to 'src/screens/profile')
| -rw-r--r-- | src/screens/profile/MomentCommentsScreen.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
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<MomentCommentsScreenProps> = ({route}) => { setCommentTapped, shouldUpdateAllComments, setShouldUpdateAllComments, - commentsLength, - setCommentsLength, }}> <View style={styles.background}> <SafeAreaView> @@ -81,6 +77,7 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => { shouldUpdate={shouldUpdateAllComments} setShouldUpdate={setShouldUpdateAllComments} isThread={false} + setCommentsLengthParent={setCommentsLength} /> <AddComment placeholderText={ |
