From: unknown Date: Thu, 9 Sep 2021 12:05:39 +0000 (+0530) Subject: Added unread highlight in RoomSelector X-Git-Tag: v1.3.0^2~22 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=652f8227b5b900c9199e7697a67721816960e589;p=cinny.git Added unread highlight in RoomSelector --- diff --git a/src/app/molecules/room-selector/RoomSelector.jsx b/src/app/molecules/room-selector/RoomSelector.jsx index 01e2ffc..7e7f277 100644 --- a/src/app/molecules/room-selector/RoomSelector.jsx +++ b/src/app/molecules/room-selector/RoomSelector.jsx @@ -10,10 +10,12 @@ import NotificationBadge from '../../atoms/badge/NotificationBadge'; import { blurOnBubbling } from '../../atoms/button/script'; function RoomSelectorWrapper({ - isSelected, onClick, content, options, + isSelected, isUnread, onClick, content, options, }) { + let myClass = isUnread ? ' room-selector--unread' : ''; + myClass += isSelected ? ' room-selector--selected' : ''; return ( -
+