aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-05-10 15:22:00 -0700
committerBrian Kim <brian@tagg.id>2021-05-10 15:22:00 -0700
commit517616f21aa3644103b185884e2c233056e316d8 (patch)
treead49bdd31df47fa6f043b9af08584560bcca0769 /src/utils/comments.tsx
parent4bc27c266710fbab8c028c6fdbaf4fd158b3dcc2 (diff)
Removed unneeded ref variables
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r--src/utils/comments.tsx5
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: