2.0/email-builder
Lei OT 11 months ago
parent 50b4698a9a
commit 806d065a23

@ -9,7 +9,7 @@ import useConversationStore from '@/stores/ConversationStore'
import { useOrderStore } from '@/stores/OrderStore'
import { EditIcon } from '@/components/Icons'
const EmailSwitcher = ({ ...props }) => {
const EmailNewBtn = ({ ...props }) => {
const [mobile] = useStyleStore((state) => [state.mobile])
const { userId, username, emailList } = useAuthStore((state) => state.loginUser)
@ -82,4 +82,4 @@ const EmailSwitcher = ({ ...props }) => {
</ConfigProvider>
)
}
export default EmailSwitcher
export default EmailNewBtn

@ -2,7 +2,7 @@ import { Children, createContext, useEffect, useState } from 'react';
import { Dropdown, Space, Tabs } from 'antd';
import { MailFilled, MailOutlined, WhatsAppOutlined, DownOutlined } from '@ant-design/icons';
import InputComposer from './Input/InputComposer';
import EmailSwitcher from './Input/EmailSwitcher';
import EmailNewBtn from './Input/EmailNewBtn';
import { WABIcon } from '@/components/Icons';
import useConversationStore from '@/stores/ConversationStore';
import { useShallow } from 'zustand/react/shallow';
@ -73,7 +73,7 @@ const ReplyWrapper = () => {
const replyTypes = [
// { key: 'waba', label: mobile ? '' : (<WABASwitcher />), icon: <WABIcon />, children: <InputComposer channel={'waba'} /> },
{ key: 'waba', label: mobile ? '' : '商业号', icon: <WABIcon />, children: <InputComposer channel={'waba'} /> },
{ key: 'email', label: mobile ? '' : '邮件', icon: <MailOutlined className='text-indigo-500' />, children: <EmailSwitcher /> },
{ key: 'email', label: mobile ? '' : '邮件', icon: <MailOutlined className='text-indigo-500' />, children: <EmailNewBtn /> },
// { key: 'whatsapp', label: mobile ? '' : 'WhatsApp', icon: <WhatsAppOutlined className='text-whatsapp' />, children: <InputComposer channel={'whatsapp'} /> },
{ key: 'wa', label: mobile ? '' : 'WhatsApp', icon: <WhatsAppOutlined className='text-whatsapp' />, children: <div className='p-2 py-4 text-center text-whatsapp bg-gray-200 rounded rounded-b-none border-gray-300 border-solid border border-b-0 border-x-0'>正在开发敬请期待</div> },
// TODO WA

Loading…
Cancel
Save