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 ( -
{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}
-