balibabu
commited on
Commit
·
6f14aae
1
Parent(s):
758538f
Fix: Hide the upload button in the external chat box #2242 (#4048)
Browse files### What problem does this PR solve?
Fix: Hide the upload button in the external chat box #2242
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
web/src/pages/chat/share/large.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import MessageInput from '@/components/message-input';
|
2 |
import MessageItem from '@/components/message-item';
|
3 |
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
4 |
-
import { MessageType
|
5 |
import { useSendButtonDisabled } from '@/pages/chat/hooks';
|
6 |
import { Flex, Spin } from 'antd';
|
7 |
import { forwardRef } from 'react';
|
@@ -15,7 +15,7 @@ import PdfDrawer from '@/components/pdf-drawer';
|
|
15 |
import styles from './index.less';
|
16 |
|
17 |
const ChatContainer = () => {
|
18 |
-
const {
|
19 |
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
20 |
useClickDrawer();
|
21 |
|
@@ -79,7 +79,7 @@ const ChatContainer = () => {
|
|
79 |
onPressEnter={handlePressEnter}
|
80 |
sendLoading={sendLoading}
|
81 |
uploadMethod="external_upload_and_parse"
|
82 |
-
showUploadIcon={
|
83 |
></MessageInput>
|
84 |
</Flex>
|
85 |
{visible && (
|
|
|
1 |
import MessageInput from '@/components/message-input';
|
2 |
import MessageItem from '@/components/message-item';
|
3 |
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
4 |
+
import { MessageType } from '@/constants/chat';
|
5 |
import { useSendButtonDisabled } from '@/pages/chat/hooks';
|
6 |
import { Flex, Spin } from 'antd';
|
7 |
import { forwardRef } from 'react';
|
|
|
15 |
import styles from './index.less';
|
16 |
|
17 |
const ChatContainer = () => {
|
18 |
+
const { sharedId: conversationId } = useGetSharedChatSearchParams();
|
19 |
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
20 |
useClickDrawer();
|
21 |
|
|
|
79 |
onPressEnter={handlePressEnter}
|
80 |
sendLoading={sendLoading}
|
81 |
uploadMethod="external_upload_and_parse"
|
82 |
+
showUploadIcon={false}
|
83 |
></MessageInput>
|
84 |
</Flex>
|
85 |
{visible && (
|