aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
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,