aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-09 18:50:15 -0400
committerGitHub <noreply@github.com>2021-07-09 18:50:15 -0400
commit1b2dbdefd7f0f188c3aae9f3fb862a690c123468 (patch)
treee9b88baa252155d3dcad90d6d7b68f195e81be2a /src/utils/comments.tsx
parent70a9fbcd9aab15be060694fc751cda5f26a81e11 (diff)
parenta0f3288050ec1ea3b9b9fc1320fa54b7f3119bb2 (diff)
Merge pull request #491 from IvanIFChen/tma969-new-caption-screen
[TMA-969] New Caption Screen
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,