From 46e1dbb8d50574b2930bf097a444f75540982c99 Mon Sep 17 00:00:00 2001 From: Chunxian Zhang <1836891291@qq.com> Date: Mon, 25 Jul 2022 01:26:25 +0800 Subject: [PATCH] =?UTF-8?q?fe-24=20=E7=BD=91=E9=A1=B5=E8=84=9A=E6=B3=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lazy-timer-fe/src/components/Chat.jsx | 63 +++++++++++++++++++++++++++++++++ lazy-timer-fe/src/components/Footer.jsx | 11 ++++++ 2 files changed, 74 insertions(+) create mode 100644 lazy-timer-fe/src/components/Chat.jsx create mode 100644 lazy-timer-fe/src/components/Footer.jsx diff --git a/lazy-timer-fe/src/components/Chat.jsx b/lazy-timer-fe/src/components/Chat.jsx new file mode 100644 index 0000000..3eb84a6 --- /dev/null +++ b/lazy-timer-fe/src/components/Chat.jsx @@ -0,0 +1,63 @@ +import React from 'react'; +import { MdOutlineCancel } from 'react-icons/md'; + +import { Button } from '.'; +import { chatData } from '../data/dummy'; +import { useStateContext } from '../contexts/ContextProvider'; + +const Chat = () => { + const { currentColor } = useStateContext(); + + return ( +
+
+
+

Messages

+ +
+
+
+ {chatData?.map((item, index) => ( +
+
+ {item.message} + +
+
+

{item.message}

+

{item.desc}

+

{item.time}

+
+
+ ))} +
+
+
+
+ ); +}; + +export default Chat; diff --git a/lazy-timer-fe/src/components/Footer.jsx b/lazy-timer-fe/src/components/Footer.jsx new file mode 100644 index 0000000..fab337a --- /dev/null +++ b/lazy-timer-fe/src/components/Footer.jsx @@ -0,0 +1,11 @@ +import React from 'react'; + +const Footer = () => ( +
+

+ © 2022 All rights reserved by Shoppy.com +

+
+); + +export default Footer;