aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-07-13 18:00:38 -0400
committerBrian Kim <brian@tagg.id>2021-07-13 18:00:38 -0400
commitd915d6e9fdd86aa35678d53b0b39b0038e3a8ac1 (patch)
tree4965095205ad5fb4fa3e1d6e82d3c784350b0353 /src/utils/comments.tsx
parentb7cba594635f4a6de3582ba4845bfc9757632ba1 (diff)
parent68f05afdf2d4ca29df60761c3d8f8ee445c1804d (diff)
Merge with 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,