diff --git a/src/App.js b/src/App.js index a712d2d..b894753 100644 --- a/src/App.js +++ b/src/App.js @@ -431,13 +431,18 @@ class App extends React.Component { (m.from === this.state.user.socketId && m.to === this.state.namespace) ) - .map(m => ( -
-
{m.date}
-
{m.nick}
-
{m.text}
-
- ))} + .map(m => { + const rowColor = m.from === 'server' ? 'text-secondary' : '' + return ( +
+
{m.date}
+ {m.from === 'server' ? null : ( +
{m.nick}:
+ )} +
{m.text}
+
+ ) + })}