Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3315906
D3126.id9353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
744 B
Referenced Files
None
Subscribers
None
D3126.id9353.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3126: [web] [refactor] thread-list-sidebar, active thread style to use classnames lib instead of ternary
Attached
Detach File
Event Timeline
Log In to Comment