diff --git a/web/src/components/floating-chat-widget.tsx b/web/src/components/floating-chat-widget.tsx index cbb83cbde..9f7d8cfa5 100644 --- a/web/src/components/floating-chat-widget.tsx +++ b/web/src/components/floating-chat-widget.tsx @@ -1,11 +1,11 @@ +import PdfDrawer from '@/components/pdf-drawer'; +import { useClickDrawer } from '@/components/pdf-drawer/hooks'; import { MessageType, SharedFrom } from '@/constants/chat'; import { useFetchNextConversationSSE } from '@/hooks/chat-hooks'; import { useFetchFlowSSE } from '@/hooks/flow-hooks'; import { useFetchExternalChatInfo } from '@/hooks/use-chat-request'; -import { useClickDrawer } from '@/components/pdf-drawer/hooks'; import i18n from '@/locales/config'; import { MessageCircle, Minimize2, Send, X } from 'lucide-react'; -import PdfDrawer from '@/components/pdf-drawer'; import React, { useCallback, useEffect, @@ -234,7 +234,7 @@ const FloatingChatWidget = () => { const syntheticEvent = { target: { value: inputValue }, currentTarget: { value: inputValue }, - preventDefault: () => { }, + preventDefault: () => {}, } as any; handleInputChange(syntheticEvent); @@ -311,6 +311,7 @@ const FloatingChatWidget = () => { className={`fixed bottom-6 right-6 z-50 transition-opacity duration-300 ${isLoaded ? 'opacity-100' : 'opacity-0'}`} >