aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorMichael <michael.foiani@gmail.com>2021-07-13 16:03:20 -0400
committerMichael <michael.foiani@gmail.com>2021-07-13 16:03:20 -0400
commit3c846d45ada4929fae6493c4704c70544c7941a3 (patch)
tree3bcd9328ce86d1bb22f71736ac1a7df3af8f6905 /src/utils/comments.tsx
parentc51abe84b279402c3b3ad541e2af80754d0c67e7 (diff)
parent68f05afdf2d4ca29df60761c3d8f8ee445c1804d (diff)
Merged with new master.
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r--src/utils/comments.tsx9
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,