From 01b898a492995aa58119d93d4cc5c1cbdfe3b80f Mon Sep 17 00:00:00 2001 From: mamadoudicko Date: Mon, 21 Aug 2023 14:47:38 +0200 Subject: [PATCH] feat: remove add new brain button --- .../MentionInput/components/SuggestionsContainer.tsx | 3 --- .../components/MentionInput/hooks/helpers/MentionPlugin.tsx | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/components/SuggestionsContainer.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/components/SuggestionsContainer.tsx index 5cfa12c902db..a4d4006f7f22 100644 --- a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/components/SuggestionsContainer.tsx +++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/components/SuggestionsContainer.tsx @@ -1,8 +1,6 @@ import { Popover } from "@draft-js-plugins/mention"; import { PopoverProps } from "@draft-js-plugins/mention/lib/MentionSuggestions/Popover"; -import { AddNewBrainButton } from "./AddNewBrainButton"; - export const SuggestionsContainer = ({ children, ...popoverProps @@ -15,7 +13,6 @@ export const SuggestionsContainer = ({ className="bg-white dark:bg-black border border-black/10 dark:border-white/25 rounded-md shadow-md overflow-y-auto" > {children} - ); diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/helpers/MentionPlugin.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/helpers/MentionPlugin.tsx index b5c3864ee928..981b7a1b5004 100644 --- a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/helpers/MentionPlugin.tsx +++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/helpers/MentionPlugin.tsx @@ -25,6 +25,7 @@ export const useMentionPlugin = (props: MentionPluginProps) => { }} /> ), + popperOptions: { placement: "top-end", modifiers: [