Merge branch 'main' of github.com:hainatravel/global-sales

dev/supplier-email-drawer
LiaoYijun 9 months ago
commit c3a08d8ddd

@ -25,12 +25,12 @@ const ChatWindow = () => {
return ( return (
<> <>
<Layout hasSider className='h-screen chatwindow-wrapper' style={{ maxHeight: 'calc(100% - 198px)', height: 'calc(100% - 198px)' }}> <Layout hasSider className='h-screen chatwindow-wrapper' style={{ maxHeight: 'calc(100% - 166px)', height: 'calc(100% - 166px)' }}>
<Sider <Sider
width={300} width={340}
theme={'light'} theme={'light'}
className='h-full overflow-y-auto h-parent' className='h-full overflow-y-auto h-parent'
style={{ maxHeight: 'calc(100vh - 198px)', height: 'calc(100vh - 198px)' }} style={{ maxHeight: 'calc(100vh - 166px)', height: 'calc(100vh - 166px)' }}
collapsible={true} collapsible={true}
breakpoint='xl' breakpoint='xl'
collapsedWidth={73} collapsedWidth={73}
@ -43,7 +43,7 @@ const ChatWindow = () => {
<ConversationsList /> <ConversationsList />
</Sider> </Sider>
<Content style={{ maxHeight: 'calc(100vh - 198px)', height: 'calc(100vh - 198px)', minWidth: '360px' }}> <Content style={{ maxHeight: 'calc(100vh - 166px)', height: 'calc(100vh - 166px)', minWidth: '360px' }}>
<Layout className='h-full'> <Layout className='h-full'>
<Header className='px-1 ant-layout-sider-light ant-card h-auto flex justify-between gap-1 items-center'> <Header className='px-1 ant-layout-sider-light ant-card h-auto flex justify-between gap-1 items-center'>
{/* <Button type='text' icon={collapsedLeft ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />} onClick={() => setCollapsedLeft(!collapsedLeft)} className=' rounded-none rounded-l' /> */} {/* <Button type='text' icon={collapsedLeft ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />} onClick={() => setCollapsedLeft(!collapsedLeft)} className=' rounded-none rounded-l' /> */}
@ -63,10 +63,10 @@ const ChatWindow = () => {
</Content> </Content>
<Sider <Sider
width={300} width={400}
theme={'light'} theme={'light'}
className=' overflow-y-auto' className=' overflow-y-auto'
style={{ maxHeight: 'calc(100vh - 198px)', height: 'calc(100vh - 198px)' }} style={{ maxHeight: 'calc(100vh - 166px)', height: 'calc(100vh - 166px)' }}
collapsible={true} collapsible={true}
breakpoint='xl' breakpoint='xl'
collapsedWidth={0} collapsedWidth={0}

@ -122,7 +122,7 @@ const CustomerProfile = () => {
setNewChatModalVisible(false); setNewChatModalVisible(false);
}; };
const handleEmailClick = useCallback((emailItem) => { const handle3rdEmailItemClick = useCallback((emailItem) => {
const emailMsg = { const emailMsg = {
conversationid: currentConversationID, conversationid: currentConversationID,
order_opi: orderDetail.opi_sn, order_opi: orderDetail.opi_sn,
@ -293,7 +293,7 @@ const CustomerProfile = () => {
<List.Item <List.Item
className='hover:bg-stone-50 cursor-pointer' className='hover:bg-stone-50 cursor-pointer'
onClick={() => { onClick={() => {
handleEmailClick(email) handle3rdEmailItemClick(email)
}}> }}>
<Flex <Flex
vertical vertical

@ -235,7 +235,7 @@ function DesktopApp() {
<Layout> <Layout>
<Content <Content
style={{ style={{
padding: 24, padding: 8,
margin: 0, margin: 0,
minHeight: 280, minHeight: 280,
background: colorBgContainer, background: colorBgContainer,

@ -27,6 +27,7 @@ const webhookBodyBuilder = (messageData, messageType) => {
waiMessage: { waiMessage: {
...messageData, ...messageData,
...(messageData.updateTime ? { [timeField[messageData.status]]: messageData.updateTime } : {}), ...(messageData.updateTime ? { [timeField[messageData.status]]: messageData.updateTime } : {}),
wamid: messageData.id,
direction: directionField[messageType], direction: directionField[messageType],
externalId: '', // todo: externalId: '', // todo:
}, },

Loading…
Cancel
Save