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 @@ -21,6 +21,7 @@ useServerCall, useDispatchActionPromise, } from 'lib/utils/action-utils'; +import { isDev } from 'lib/utils/dev-utils'; import MenuItem from '../components/menu-item.react'; import Menu from '../components/menu.react'; @@ -195,6 +196,19 @@ ); }, [onClickLeaveThread, threadInfo]); + const onClickPromoteThread = React.useCallback(() => {}, []); + + const promoteSubchannelItem = React.useMemo(() => { + return ( + + ); + }, [onClickPromoteThread]); + const menuItems = React.useMemo(() => { const notificationsItem = ( @@ -204,6 +218,7 @@ // TODO: Enable menu items when the modals are implemented const SHOW_NOTIFICATIONS = false; const SHOW_CREATE_SUBCHANNELS = false; + const SHOW_PROMOTE_SUBCHANNEL = isDev; const items = [ settingsItem, @@ -213,6 +228,7 @@ viewSubchannelsItem, SHOW_CREATE_SUBCHANNELS && createSubchannelsItem, leaveThreadItem && separator, + SHOW_PROMOTE_SUBCHANNEL && promoteSubchannelItem, leaveThreadItem, ]; return items.filter(Boolean); @@ -221,6 +237,7 @@ membersItem, sidebarItem, viewSubchannelsItem, + promoteSubchannelItem, createSubchannelsItem, leaveThreadItem, ]);