diff options
author | Brian Kim <brian@tagg.id> | 2021-06-16 23:11:49 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-16 23:11:49 +0900 |
commit | 41a9ecf350ccc1567e7cbf9c0a3413565d2397f7 (patch) | |
tree | db18097a041c97ed418c2241a0c75e95f06aa28f | |
parent | 4a422e43c6a6deaeff5d8fcc692138454653e4b9 (diff) |
Fix issue with background messing up appearance of AddComment elsewhere
-rw-r--r-- | src/components/comments/AddComment.tsx | 2 | ||||
-rw-r--r-- | src/components/moments/MomentCommentPreview.tsx | 2 | ||||
-rw-r--r-- | src/screens/profile/MomentCommentsScreen.tsx | 5 |
3 files changed, 4 insertions, 5 deletions
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<AddCommentProps> = ({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<MomentCommentsScreenProps> = ({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<CommentType | CommentThreadType | undefined>(); useEffect(() => { navigation.setOptions({ |