From f4e8494790b3227468d11c8641b498064d1b9887 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 29 Nov 2024 12:42:17 +0000 Subject: [PATCH] style: format code with prettier and fix lint issues --- client/src/components/Chat/MessageList.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/components/Chat/MessageList.jsx b/client/src/components/Chat/MessageList.jsx index da88ba2b..fbbf617b 100644 --- a/client/src/components/Chat/MessageList.jsx +++ b/client/src/components/Chat/MessageList.jsx @@ -40,9 +40,9 @@ const MessageList = ({ function getRepliedMessage(replyTo) { return decryptedMessages.find((object) => object.id === replyTo); - } + } - console.log(decryptedMessages) + console.log(decryptedMessages); return ( decryptedMessages && @@ -156,7 +156,9 @@ const MessageList = ({ __html: md.render( badwordChoices[id] === 'hide' ? badwords.filter(message) - : badwordChoices[id] === 'show' ? message : message + : badwordChoices[id] === 'show' + ? message + : message ), }} /> @@ -199,9 +201,9 @@ const MessageList = ({ export default MessageList; MessageList.propTypes = { - decryptedMessages: PropTypes.array, + decryptedMessages: PropTypes.array, senderId: PropTypes.string.isRequired, - currentReplyMessageId: PropTypes.string, + currentReplyMessageId: PropTypes.string, doSend: PropTypes.func.isRequired, inputRef: PropTypes.object.isRequired, cancelEdit: PropTypes.func.isRequired,