From 29ecc716dcf6f957de6000bbdff6aad53305c478 Mon Sep 17 00:00:00 2001 From: Ans155 <110165397+Ans155@users.noreply.github.com> Date: Sun, 25 Jun 2023 15:01:13 +0530 Subject: [PATCH] chat component --- components/Friend/Chat/Chat.jsx | 11 +++++++---- context/AppContext.js | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/components/Friend/Chat/Chat.jsx b/components/Friend/Chat/Chat.jsx index 8562849..d07938a 100644 --- a/components/Friend/Chat/Chat.jsx +++ b/components/Friend/Chat/Chat.jsx @@ -21,10 +21,10 @@ const Chat = ({sendMessage, readMessage, friendMsg, account, userName, Loading,
{currentUserAddress && currentUserName ? (
- img + img
-

{currentUserName}

-

{currentUserAddress}

+

{currentUserName}

+ {/*

{currentUserAddress}

*/}
@@ -41,7 +41,10 @@ const Chat = ({sendMessage, readMessage, friendMsg, account, userName, Loading,
image + {chatData.name} {""} + + Time: {convertTime(el.timestamp)}
@@ -73,7 +76,7 @@ const Chat = ({sendMessage, readMessage, friendMsg, account, userName, Loading,
smile - setMessage(e.target.value)} /> + setMessage(e.target.value)} /> file <> diff --git a/context/AppContext.js b/context/AppContext.js index 6e578c0..5a1da2f 100644 --- a/context/AppContext.js +++ b/context/AppContext.js @@ -107,7 +107,7 @@ export const AppProvider = ({ children }) => { window.location.reload(); } catch (error) { - setError("bhosda"); + setError("Please reload"); console.log(error); } };