diff options
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r-- | src/utils/comments.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx index d7091d1e..0d551682 100644 --- a/src/utils/comments.tsx +++ b/src/utils/comments.tsx @@ -78,14 +78,13 @@ export const renderTextWithMentions: React.FC<RenderProps> = ({ ); }; -export const mentionPartTypes: (style: 'blue' | 'white', textRef: any) => PartType[] = ( +export const mentionPartTypes: (style: 'blue' | 'white') => PartType[] = ( style, - textRef ) => { return [ { trigger: '@', - renderSuggestions: (props) => <TaggTypeahead textRef={textRef} {...props} />, + renderSuggestions: (props) => <TaggTypeahead {...props} />, allowedSpacesCount: 0, isInsertSpaceAfterMention: true, textStyle: |