aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/CommentTile.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-04 20:07:03 -0400
committerIvan Chen <ivan@tagg.id>2021-05-04 20:48:09 -0400
commitc23feea922da063d88d031f25b72b53ba593ec04 (patch)
tree060c94fdb8d03575d91235ca8772fcb842bdbc25 /src/components/comments/CommentTile.tsx
parent2832decea88ed14325f92759617ae8ee8a588d22 (diff)
fixed type warning
Diffstat (limited to 'src/components/comments/CommentTile.tsx')
-rw-r--r--src/components/comments/CommentTile.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx
index 37a249a8..12f32c95 100644
--- a/src/components/comments/CommentTile.tsx
+++ b/src/components/comments/CommentTile.tsx
@@ -14,7 +14,7 @@ import {deleteComment, getCommentsCount} from '../../services';
import {RootState} from '../../store/rootReducer';
import {CommentThreadType, CommentType, ScreenType} from '../../types';
import {getTimePosted, normalize, SCREEN_WIDTH} from '../../utils';
-import {mentionPartTypes, renderValue} from '../../utils/comments';
+import {mentionPartTypes, renderTextWithMentions} from '../../utils/comments';
import {ProfilePreview} from '../profile';
import CommentsContainer from './CommentsContainer';
@@ -136,7 +136,10 @@ const CommentTile: React.FC<CommentTileProps> = ({
/>
<TouchableOpacity style={styles.body} onPress={toggleAddComment}>
<View style={styles.comment}>
- {renderValue(commentObject.comment, mentionPartTypes)}
+ {renderTextWithMentions({
+ value: commentObject.comment,
+ partTypes: mentionPartTypes,
+ })}
</View>
<View style={styles.clockIconAndTime}>
<ClockIcon style={styles.clockIcon} />