diff options
author | Brian Kim <brian@tagg.id> | 2021-05-10 15:22:00 -0700 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-05-10 15:22:00 -0700 |
commit | 517616f21aa3644103b185884e2c233056e316d8 (patch) | |
tree | ad49bdd31df47fa6f043b9af08584560bcca0769 /src/utils/comments.tsx | |
parent | 4bc27c266710fbab8c028c6fdbaf4fd158b3dcc2 (diff) |
Removed unneeded ref variables
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: |