Page MenuHomePhabricator

D3126.diff
No OneTemporary

D3126.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, 3:07 PM (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2546491
Default Alt Text
D3126.diff (744 B)

Event Timeline