Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3272192
D3189.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3189.diff
View Options
diff --git a/web/chat/thread-menu.react.js b/web/chat/thread-menu.react.js
--- a/web/chat/thread-menu.react.js
+++ b/web/chat/thread-menu.react.js
@@ -1,10 +1,12 @@
// @flow
+import { faBell, faCog } from '@fortawesome/free-solid-svg-icons';
import * as React from 'react';
import { type ThreadInfo } from 'lib/types/thread-types';
import SWMansionIcon from '../SWMansionIcon.react';
+import ThreadMenuItem from './thread-menu-item.react';
import css from './thread-menu.css';
type ThreadMenuProps = {
@@ -17,7 +19,16 @@
// eslint-disable-next-line no-unused-vars
const { threadInfo } = props;
- const menuItems = [];
+ const menuItems = React.useMemo(() => {
+ const settingsItem = (
+ <ThreadMenuItem key="settings" text="Settings" icon={faCog} />
+ );
+ const notificationsItem = (
+ <ThreadMenuItem key="notifications" text="Notifications" icon={faBell} />
+ );
+ const items = [settingsItem, notificationsItem];
+ return items.filter(Boolean);
+ }, []);
const closeMenuCallback = React.useCallback(() => {
document.removeEventListener('click', closeMenuCallback);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 5:30 AM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2514821
Default Alt Text
D3189.diff (1 KB)
Attached To
Mode
D3189: [web] Introduce `Settings` and `Notifications` thread menu actions
Attached
Detach File
Event Timeline
Log In to Comment