refactor(chatMessage/index.tsx): improve code readability and fix rendering issue
The code in the `ChatMessage` component has been refactored to improve code readability and fix a rendering issue. - In line 10, the `div` element has been updated to include the `flex flex-col` class for better styling. - In lines 16-18, the conditional rendering of the `template` has been simplified by removing unnecessary ternary operator and curly braces. - In lines 21-34, the rendering of the `template` has been updated to correctly split the text into lines and replace placeholders with values. - In lines 37-39, a line break element (`<br />`) has been added for better visual separation. - In lines 41-43, the rendering of the `chat.message[chat.chatKey]` has been moved outside the `span` element for correct rendering. These changes improve the readability of the code and fix the rendering issue in the `ChatMessage` component.
A
anovazzi1 committed
cfa13df98d1ff8539ce5bb05be6d3c068ab29444
Parent: c312c56