aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/AddComment.tsx
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-06-15 12:21:53 +0900
committerBrian Kim <brian@tagg.id>2021-06-15 12:21:53 +0900
commit6ee452c257d388913a1effd817c37bef638bc179 (patch)
treefbba8144adf7b3177c0014b687440a5450019818 /src/components/comments/AddComment.tsx
parentbc2c093e9342ed8deb98652d1c278417dd6435f3 (diff)
Fix bug in caption screen of suggestions not disappearing
Diffstat (limited to 'src/components/comments/AddComment.tsx')
-rw-r--r--src/components/comments/AddComment.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx
index db85d525..3c0e9a0a 100644
--- a/src/components/comments/AddComment.tsx
+++ b/src/components/comments/AddComment.tsx
@@ -18,8 +18,8 @@ import {RootState} from '../../store/rootreducer';
import {CommentThreadType, CommentType} from '../../types';
import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';
import {mentionPartTypes} from '../../utils/comments';
-import {Avatar} from '../common';
-import {MentionInputControlled} from './MentionInputControlled';
+import {CommentTextField} from './CommentTextField';
+import MentionInputControlled from './MentionInputControlled';
import {normalize} from 'react-native-elements';
export interface AddCommentProps {
@@ -124,6 +124,7 @@ const AddComment: React.FC<AddCommentProps> = ({momentId, placeholderText}) => {
inputRef={ref}
partTypes={mentionPartTypes('blue', 'comment')}
addComment={addComment}
+ NewText={CommentTextField}
/>
</View>
</View>