Style the unread message as a badge

This commit is contained in:
Torjus committed 2018-07-12 17:39:53 +02:00
1 parent 8d9436a10e
commit 9af194769b
2 files changed
+18 -2

No files matched your search

+5 -1
View File
@@ -35,7 +35,11 @@ class ToolArea extends React.Component
checked={currentToolTab === 'chat'}
/>
<label htmlFor='tab-chat'>
Chat ({unread} new)
Chat
{unread > 0 && (
<span className='badge'>{unread}</span>
)}
</label>
<div className='tab'>