Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3537730
D6842.id22964.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
D6842.id22964.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 10:12 PM (5 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2708776
Default Alt Text
D6842.id22964.diff (1 KB)
Attached To
Mode
D6842: [web] Add navigation state info to the topbar
Attached
Detach File
Event Timeline
Log In to Comment