Fix message rendering

This commit is contained in:
Ken-Håvard Lieng 2018-11-05 07:11:15 +01:00
parent d930365eeb
commit 69d5f41270
2 changed files with 31 additions and 31 deletions

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ const Message = ({ message, coloredNick, style, onNickClick }) => {
return ( return (
<p className={className} style={style}> <p className={className} style={style}>
<span className="message-time">{message.time}</span>{' '} <span className="message-time">{message.time} </span>
{message.from && ( {message.from && (
<span <span
className="message-sender" className="message-sender"
@ -30,7 +30,7 @@ const Message = ({ message, coloredNick, style, onNickClick }) => {
{message.from} {message.from}
</span> </span>
)} )}
{` ${message.content}`} <span> {message.content}</span>
</p> </p>
); );
}; };