Skip to content

Commit

Permalink
Clean Chatbot of unnecessary component & style (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs authored Jan 31, 2024
1 parent 044be80 commit 6c80f5e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/Widgets/ChatbotWidget/ChatbotFab.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ import styled from '@emotion/styled';
import { useSiteMetadata } from '../../../hooks/use-site-metadata';

const Chatbot = lazy(() => import('mongodb-chatbot-ui'));

const InputBarTrigger = lazy(() =>
import('mongodb-chatbot-ui').then((module) => ({ default: module.InputBarTrigger }))
);
const FloatingActionButtonTrigger = lazy(() =>
import('mongodb-chatbot-ui').then((module) => ({ default: module.FloatingActionButtonTrigger }))
);
const ModalView = lazy(() => import('mongodb-chatbot-ui').then((module) => ({ default: module.ModalView })));

const StyledChatBotFabContainer = styled.div`
> div {
display: none;
}
> button {
border-width: 1px;
position: unset;
Expand All @@ -42,7 +35,6 @@ const ChatbotFab = () => {
className={fabChatbot}
>
<Chatbot serverBaseUrl={CHATBOT_SERVER_BASE_URL}>
<InputBarTrigger suggestedPrompts={suggestedPrompts} />
<FloatingActionButtonTrigger text={CHATBOT_WIDGET_TEXT} />
<ModalView
initialMessageText="Welcome to MongoDB AI Assistant. What can I help you with?"
Expand Down

0 comments on commit 6c80f5e

Please sign in to comment.