From 4bc27c266710fbab8c028c6fdbaf4fd158b3dcc2 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Mon, 10 May 2021 15:10:31 -0700 Subject: Fixed up keyboard mentions --- src/utils/comments.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/comments.tsx') diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx index 0d551682..d7091d1e 100644 --- a/src/utils/comments.tsx +++ b/src/utils/comments.tsx @@ -78,13 +78,14 @@ export const renderTextWithMentions: React.FC = ({ ); }; -export const mentionPartTypes: (style: 'blue' | 'white') => PartType[] = ( +export const mentionPartTypes: (style: 'blue' | 'white', textRef: any) => PartType[] = ( style, + textRef ) => { return [ { trigger: '@', - renderSuggestions: (props) => , + renderSuggestions: (props) => , allowedSpacesCount: 0, isInsertSpaceAfterMention: true, textStyle: -- cgit v1.2.3-70-g09d2