From 41a9ecf350ccc1567e7cbf9c0a3413565d2397f7 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Wed, 16 Jun 2021 23:11:49 +0900 Subject: Fix issue with background messing up appearance of AddComment elsewhere --- src/components/comments/AddComment.tsx | 2 +- src/components/moments/MomentCommentPreview.tsx | 2 +- src/screens/profile/MomentCommentsScreen.tsx | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx index 01325475..4a1822a3 100644 --- a/src/components/comments/AddComment.tsx +++ b/src/components/comments/AddComment.tsx @@ -130,7 +130,7 @@ const AddComment: React.FC = ({momentId, placeholderText}) => { const styles = StyleSheet.create({ container: { - backgroundColor: '#f7f7f7', + // backgroundColor: '#f7f7f7', alignItems: 'center', justifyContent: 'center', width: SCREEN_WIDTH, diff --git a/src/components/moments/MomentCommentPreview.tsx b/src/components/moments/MomentCommentPreview.tsx index f6b9d75b..d4729888 100644 --- a/src/components/moments/MomentCommentPreview.tsx +++ b/src/components/moments/MomentCommentPreview.tsx @@ -9,7 +9,7 @@ import {mentionPartTypes, renderTextWithMentions} from '../../utils/comments'; interface MomentCommentPreviewProps { momentId: string; - commentsCount: number | null; + commentsCount: number; commentPreview: MomentCommentPreviewType | null; screenType: ScreenType; } diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx index 7dfe8ae9..402e5f44 100644 --- a/src/screens/profile/MomentCommentsScreen.tsx +++ b/src/screens/profile/MomentCommentsScreen.tsx @@ -48,9 +48,8 @@ const MomentCommentsScreen: React.FC = ({route}) => { React.useState(true); //Keeps track of the current comments object in focus so that the application knows which comment to post a reply to - const [commentTapped, setCommentTapped] = useState< - CommentType | CommentThreadType | undefined - >(); + const [commentTapped, setCommentTapped] = + useState(); useEffect(() => { navigation.setOptions({ -- cgit v1.2.3-70-g09d2