From 5bf5c2b9837a3e9b4e6070b280d69be1afbe8955 Mon Sep 17 00:00:00 2001 From: data Date: Sun, 28 Jul 2019 14:18:37 +0100 Subject: [PATCH] grey out notifications --- src/App.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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}
+
+ ) + })}