diff options
author | Michael <michael.foiani@gmail.com> | 2021-07-13 16:03:20 -0400 |
---|---|---|
committer | Michael <michael.foiani@gmail.com> | 2021-07-13 16:03:20 -0400 |
commit | 3c846d45ada4929fae6493c4704c70544c7941a3 (patch) | |
tree | 3bcd9328ce86d1bb22f71736ac1a7df3af8f6905 /src/utils/comments.tsx | |
parent | c51abe84b279402c3b3ad541e2af80754d0c67e7 (diff) | |
parent | 68f05afdf2d4ca29df60761c3d8f8ee445c1804d (diff) |
Merged with new master.
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r-- | src/utils/comments.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx index 28879622..504631f5 100644 --- a/src/utils/comments.tsx +++ b/src/utils/comments.tsx @@ -82,12 +82,17 @@ export const renderTextWithMentions: React.FC<RenderProps> = ({ export const mentionPartTypes: ( theme: 'blue' | 'white', component: 'caption' | 'comment', -) => PartType[] = (theme, component) => { + isShowBelowStyle?: boolean, +) => PartType[] = (theme, component, isShowBelowStyle = false) => { return [ { trigger: '@', renderSuggestions: (props) => ( - <TaggTypeahead component={component} {...props} /> + <TaggTypeahead + component={component} + isShowBelowStyle={isShowBelowStyle} + {...props} + /> ), allowedSpacesCount: 0, isInsertSpaceAfterMention: true, |