From 652f8227b5b900c9199e7697a67721816960e589 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 9 Sep 2021 17:35:39 +0530 Subject: [PATCH] Added unread highlight in RoomSelector --- src/app/molecules/room-selector/RoomSelector.jsx | 11 ++++++++--- src/app/molecules/room-selector/RoomSelector.scss | 7 +++++++ 2 files changed, 15 insertions(+), 3 deletions(-) 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 ( -
+