Page MenuHomePhabricator

D3126.id9353.diff
No OneTemporary

D3126.id9353.diff

diff --git a/web/chat/chat-thread-list-sidebar.react.js b/web/chat/chat-thread-list-sidebar.react.js
--- a/web/chat/chat-thread-list-sidebar.react.js
+++ b/web/chat/chat-thread-list-sidebar.react.js
@@ -18,9 +18,13 @@
const { threadInfo, mostRecentNonLocalMessage } = sidebarInfo;
const threadID = threadInfo.id;
const active = useThreadIsActive(threadID);
- const activeStyle = active ? css.activeThread : null;
+
return (
- <div className={classNames(css.thread, css.sidebar, activeStyle)}>
+ <div
+ className={classNames(css.thread, css.sidebar, {
+ [css.activeThread]: active,
+ })}
+ >
<SidebarItem sidebarInfo={sidebarInfo} />
<ChatThreadListItemMenu
threadInfo={threadInfo}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 5:26 PM (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2546491
Default Alt Text
D3126.id9353.diff (744 B)

Event Timeline