From 2d85b159b8065179925417ba93f8e0a35feeb536 Mon Sep 17 00:00:00 2001 From: Khavin Shankar Date: Fri, 19 Jul 2024 11:42:01 +0530 Subject: [PATCH] fixed build errors --- src/Components/HCX/ClaimCardCommunication.tsx | 40 ++++++++++--------- src/Components/HCX/ClaimCardInfo.tsx | 3 +- src/Components/HCX/SendCommunicationModal.tsx | 2 +- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/Components/HCX/ClaimCardCommunication.tsx b/src/Components/HCX/ClaimCardCommunication.tsx index 8644659d9f0..e8ac259b53a 100644 --- a/src/Components/HCX/ClaimCardCommunication.tsx +++ b/src/Components/HCX/ClaimCardCommunication.tsx @@ -38,7 +38,7 @@ export default function ClaimCardCommunication({ HCXActions.communications.list({ claim: claim.id, ordering: "created_date", - }) + }), ); if (response.status === 200 && response.data) { @@ -48,9 +48,9 @@ export default function ClaimCardCommunication({ setMessages((prev) => [ ...prev, { ...content, user: communication.created_by, index: i }, - ]) + ]), ); - } + }, ); } }, [claim.id, dispatch]); @@ -63,7 +63,7 @@ export default function ClaimCardCommunication({ type: response.type as string, data: response.data as string, })), - }) + }), ); console.log(response, response.status); @@ -81,7 +81,7 @@ export default function ClaimCardCommunication({ }, [responses]); return ( -
+
{createdCommunication && ( setShowMessages(false)} - className="care-l-info-circle w-7 h-7 text-gray-600 cursor-pointer hover:text-gray-800" />
-
+
{messages.map((message) => (

{message.data} @@ -121,31 +122,34 @@ export default function ClaimCardCommunication({ ))} {responses.map((message, i) => ( -

+

setResponses((prev) => prev.filter((_, j) => i !== j)) } - className="group relative flex items-center justify-center gap-2 ml-2 py-3 px-4 text-white bg-blue-400 rounded-bl-3xl rounded-tl-3xl rounded-tr-xl hover:bg-red-400" + className="group relative ml-2 flex items-center justify-center gap-2 rounded-bl-3xl rounded-tl-3xl rounded-tr-xl bg-blue-400 px-4 py-3 text-white hover:bg-red-400" > - + {message.data} - +

))}
-
+
setInputText(e.value)} placeholder="Enter a message" rows={1} - className="w-full -mb-3" + className="-mb-3 w-full" /> {inputText.length || !responses.length ? (
setShowMessages(true)} - className="care-l-comment-alt-message h-7 w-7 cursor-pointer text-gray-600 hover:text-gray-800" /> {claim.use && ( diff --git a/src/Components/HCX/SendCommunicationModal.tsx b/src/Components/HCX/SendCommunicationModal.tsx index 16e5b570d2f..66c77c3f2dd 100644 --- a/src/Components/HCX/SendCommunicationModal.tsx +++ b/src/Components/HCX/SendCommunicationModal.tsx @@ -42,7 +42,7 @@ export default function SendCommunicationModal({ className="w-full max-w-screen-lg" titleAction={ - {isLoading && } + {isLoading && } {isLoading ? "Sending Message" : "Send Message"} }