From 0562a74c28dc4db76e3601347f6463de3d572cfe Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 29 Nov 2024 16:11:13 +0800 Subject: [PATCH] # --- .../Conversations/Online/Input/EmailComposer.jsx | 2 +- .../Conversations/Online/Input/InputComposer.jsx | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/views/Conversations/Online/Input/EmailComposer.jsx b/src/views/Conversations/Online/Input/EmailComposer.jsx index f295455..2d8e1f1 100644 --- a/src/views/Conversations/Online/Input/EmailComposer.jsx +++ b/src/views/Conversations/Online/Input/EmailComposer.jsx @@ -192,7 +192,7 @@ const EmailComposer = ({ ...props }) => { handleFocus('subject')} suffix={ diff --git a/src/views/Conversations/Online/Input/InputComposer.jsx b/src/views/Conversations/Online/Input/InputComposer.jsx index b100c2f..0a7031d 100644 --- a/src/views/Conversations/Online/Input/InputComposer.jsx +++ b/src/views/Conversations/Online/Input/InputComposer.jsx @@ -1,26 +1,17 @@ import React, { useState, useRef, useEffect } from 'react'; -import { App, Input, Flex, Button, Image, Tooltip } from 'antd'; +import { App, Input, Flex, Button, Image } from 'antd'; import PropTypes from 'prop-types'; // import { Input } from 'react-chat-elements'; import useAuthStore from '@/stores/AuthStore'; import useConversationStore from '@/stores/ConversationStore'; -import { - SendOutlined, - CloseCircleOutlined, - LoadingOutlined, FileOutlined, - DollarOutlined -} from '@ant-design/icons'; +import { SendOutlined, CloseCircleOutlined, LoadingOutlined, FileOutlined } from '@ant-design/icons' import { isEmpty, } from '@/utils/commons'; import { v4 as uuid } from 'uuid'; import { sentMsgTypeMapped, whatsappSupportFileTypes, uploadProgressSimulate } from '@/channel/bubbleMsgUtils'; -import InputTemplate from './Template'; -import InputEmoji from './Emoji'; -import InputMediaUpload from './MediaUpload'; import { OSS_URL as aliOSSHost } from '@/config'; import { postUploadFileItem } from '@/actions/CommonActions'; import dayjs from 'dayjs'; import useStyleStore from '@/stores/StyleStore'; -import { useOrderStore } from '@/stores/OrderStore' import ComposerTools from './ComposerTools'; const ButtonStyleClsMapped = @@ -34,7 +25,6 @@ const InputComposer = ({ channel, currentActive }) => { const [mobile] = useStyleStore((state) => [state.mobile]); const {userId, whatsAppBusiness} = useAuthStore((state) => state.loginUser); - const [openPaymentDrawer] = useOrderStore((state) => [state.openDrawer]) const websocket = useConversationStore((state) => state.websocket); const websocketOpened = useConversationStore((state) => state.websocketOpened);