forked from notnull/ircz
grey out notifications
This commit is contained in:
parent
abcce5c839
commit
5bf5c2b983
19
src/App.js
19
src/App.js
@ -431,13 +431,18 @@ class App extends React.Component {
|
|||||||
(m.from === this.state.user.socketId &&
|
(m.from === this.state.user.socketId &&
|
||||||
m.to === this.state.namespace)
|
m.to === this.state.namespace)
|
||||||
)
|
)
|
||||||
.map(m => (
|
.map(m => {
|
||||||
<div className="d-flex" key={m.id}>
|
const rowColor = m.from === 'server' ? 'text-secondary' : ''
|
||||||
<div className="p-2 text-nowrap">{m.date}</div>
|
return (
|
||||||
<div className="p-2">{m.nick}</div>
|
<div className={`d-flex ${rowColor}`} key={m.id}>
|
||||||
<div className="p-2 flex-grow-1">{m.text}</div>
|
<div className="pr-3 text-nowrap">{m.date}</div>
|
||||||
</div>
|
{m.from === 'server' ? null : (
|
||||||
))}
|
<div className="pr-3 text-nowrap">{m.nick}:</div>
|
||||||
|
)}
|
||||||
|
<div className="pr-3 flex-grow-1">{m.text}</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
<form onSubmit={this.submitMessage}>
|
<form onSubmit={this.submitMessage}>
|
||||||
<input
|
<input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user