Page MenuHomePhabricator

D6842.id22964.diff
No OneTemporary

D6842.id22964.diff

diff --git a/web/navigation-panels/topbar.react.js b/web/navigation-panels/topbar.react.js
--- a/web/navigation-panels/topbar.react.js
+++ b/web/navigation-panels/topbar.react.js
@@ -6,9 +6,12 @@
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js';
import AppSwitcher from './app-switcher.react.js';
+import NavStateInfoBar from './nav-state-info-bar.react.js';
import css from './topbar.css';
import Button from '../components/button.react.js';
import AppsDirectory from '../modals/apps/apps-directory-modal.react.js';
+import { useDrawerSelectedThreadID } from '../selectors/thread-selectors.js';
+import { useThreadInfoForPossiblyPendingThread } from '../utils/thread-utils.js';
function Topbar(): React.Node {
const { pushModal } = useModalContext();
@@ -30,13 +33,19 @@
[onClickApps],
);
+ const activeChatThreadID = useDrawerSelectedThreadID();
+ const threadInfo = useThreadInfoForPossiblyPendingThread(activeChatThreadID);
+
return (
- <div className={css.container}>
- <div className={css.tabs}>
- <AppSwitcher />
+ <>
+ <NavStateInfoBar threadInfoInput={threadInfo} />
+ <div className={css.container}>
+ <div className={css.tabs}>
+ <AppSwitcher />
+ </div>
+ {appNavigationItem}
</div>
- {appNavigationItem}
- </div>
+ </>
);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 4:20 PM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580413
Default Alt Text
D6842.id22964.diff (1 KB)

Event Timeline