From 376015d2870a16d7272a02a5d0c0ba64c052b8ca Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 26 Jul 2024 11:16:30 +0800 Subject: [PATCH] todo: EmailComposer, WABIcon --- package.json | 3 ++- public/icon-email-fill.svg | 1 + public/icon-email.svg | 1 + public/main_whatsapp_business.svg | 1 + src/components/Icons.jsx | 14 +++++++++++++ .../Conversations/Online/EmailComposer.jsx | 21 +++++++++++++++++++ 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 public/icon-email-fill.svg create mode 100644 public/icon-email.svg create mode 100644 public/main_whatsapp_business.svg create mode 100644 src/components/Icons.jsx create mode 100644 src/views/Conversations/Online/EmailComposer.jsx diff --git a/package.json b/package.json index f37ce78..52ac7a5 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "react": "^18.2.0", "react-chat-elements": "^12.0.11", "react-dom": "^18.2.0", + "react-quill": "^2.0.0", "react-router-dom": "^6.21.1", "rxjs": "^7.8.1", "uuid": "^9.0.1", @@ -30,6 +31,7 @@ "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", "@vitejs/plugin-react": "^4.2.1", + "@vonage/client-sdk": "^1.6.0", "autoprefixer": "^10.4.17", "eslint": "^8.45.0", "eslint-plugin-react": "^7.32.2", @@ -37,7 +39,6 @@ "eslint-plugin-react-refresh": "^0.4.3", "postcss": "^8.4.33", "tailwindcss": "^3.4.1", - "@vonage/client-sdk": "^1.6.0", "vite": "^4.5.1", "vite-plugin-css-modules": "^0.0.1", "vite-plugin-windicss": "^1.9.3", diff --git a/public/icon-email-fill.svg b/public/icon-email-fill.svg new file mode 100644 index 0000000..d33030b --- /dev/null +++ b/public/icon-email-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/icon-email.svg b/public/icon-email.svg new file mode 100644 index 0000000..2ad939b --- /dev/null +++ b/public/icon-email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/main_whatsapp_business.svg b/public/main_whatsapp_business.svg new file mode 100644 index 0000000..de9634c --- /dev/null +++ b/public/main_whatsapp_business.svg @@ -0,0 +1 @@ + diff --git a/src/components/Icons.jsx b/src/components/Icons.jsx new file mode 100644 index 0000000..268dc25 --- /dev/null +++ b/src/components/Icons.jsx @@ -0,0 +1,14 @@ +import Icon from '@ant-design/icons'; +const WABSvg = () => ( + + + + +); +export const WABIcon = (props) => ; diff --git a/src/views/Conversations/Online/EmailComposer.jsx b/src/views/Conversations/Online/EmailComposer.jsx new file mode 100644 index 0000000..7ec3ee8 --- /dev/null +++ b/src/views/Conversations/Online/EmailComposer.jsx @@ -0,0 +1,21 @@ +import React, { useState } from 'react'; +import ReactQuill from 'react-quill'; +import 'react-quill/dist/quill.snow.css'; // Import Quill themes + +const EmailComposer = () => { + const [content, setContent] = useState(''); + + const handleChange = value => { + setContent(value); + }; + + return ( + + ); +}; + +export default EmailComposer;