Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3379567
D3538.id10896.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
610 B
Referenced Files
None
Subscribers
None
D3538.id10896.diff
View Options
diff --git a/web/chat/sidebar-item.react.js b/web/chat/sidebar-item.react.js
--- a/web/chat/sidebar-item.react.js
+++ b/web/chat/sidebar-item.react.js
@@ -13,10 +13,15 @@
+sidebarInfo: SidebarInfo,
};
function SidebarItem(props: Props): React.Node {
- const { threadInfo } = props.sidebarInfo;
+ const {
+ sidebarInfo: { threadInfo },
+ } = props;
+ const {
+ currentUser: { unread },
+ } = threadInfo;
+
const onClick = useOnClickThread(threadInfo);
- const { unread } = threadInfo.currentUser;
const unreadCls = classNames(css.sidebarTitle, { [css.unread]: unread });
return (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 5:11 PM (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594187
Default Alt Text
D3538.id10896.diff (610 B)
Attached To
Mode
D3538: [web] [refactor] destructure props to match project
Attached
Detach File
Event Timeline
Log In to Comment