diff --git a/web/chat/sidebar-item.react.js b/web/chat/sidebar-item.react.js index 315cde4b2..e7195dcf9 100644 --- a/web/chat/sidebar-item.react.js +++ b/web/chat/sidebar-item.react.js @@ -1,49 +1,46 @@ // @flow import classNames from 'classnames'; import * as React from 'react'; import AlignRightIcon from 'react-entypo-icons/lib/entypo/AlignRight'; import type { SidebarInfo } from 'lib/types/thread-types'; import { shortAbsoluteDate } from 'lib/utils/date-utils'; import { useSelector } from '../redux/redux-utils'; import { useOnClickThread } from '../selectors/nav-selectors'; import css from './chat-thread-list.css'; type Props = { +sidebarInfo: SidebarInfo, }; function SidebarItem(props: Props): React.Node { const { threadInfo, lastUpdatedTime } = props.sidebarInfo; const threadID = threadInfo.id; const onClick = useOnClickThread(threadID); const timeZone = useSelector(state => state.timeZone); const lastActivity = shortAbsoluteDate(lastUpdatedTime, timeZone); const { unread } = threadInfo.currentUser; + const unreadCls = classNames(css.sidebarTitle, { [css.unread]: unread }); return (
+
{threadInfo.uiName}
-
- {threadInfo.uiName} -
{lastActivity}
); } export default SidebarItem;