diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-04 13:31:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:31:17 -0400 |
commit | 1441ef007549f24a292317f1e67c0de63cacbd2b (patch) | |
tree | 1b1fe4a21f257c468c321d49804f124c98a6e6b6 /src/components/comments/AddComment.tsx | |
parent | 5a8d92bcd869ada1079bc36b6598c899a8a9246d (diff) | |
parent | 64dedc2bc0c65fae604ba771ae4c17d1927ff1c2 (diff) |
Merge pull request #392 from IvanIFChen/tma791-remove-profile-photo-requirement
[TMA-791] Removed profile photo requirement
Diffstat (limited to 'src/components/comments/AddComment.tsx')
-rw-r--r-- | src/components/comments/AddComment.tsx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx index 3b195a2b..2a8c773e 100644 --- a/src/components/comments/AddComment.tsx +++ b/src/components/comments/AddComment.tsx @@ -1,6 +1,5 @@ import React, {useEffect, useRef} from 'react'; import { - Image, Keyboard, KeyboardAvoidingView, Platform, @@ -15,6 +14,7 @@ import {postComment} from '../../services'; import {updateReplyPosted} from '../../store/actions'; import {RootState} from '../../store/rootreducer'; import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; +import {Avatar} from '../common'; /** * This file provides the add comment view for a user. @@ -101,14 +101,7 @@ const AddComment: React.FC<AddCommentProps> = ({ keyboardVisible ? styles.whiteBackround : {}, ]}> <View style={styles.textContainer}> - <Image - style={styles.avatar} - source={ - avatar - ? {uri: avatar} - : require('../../assets/images/avatar-placeholder.png') - } - /> + <Avatar style={styles.avatar} uri={avatar} /> <TextInput style={styles.text} placeholder={placeholderText} |