Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3295653
D3344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
932 B
Referenced Files
None
Subscribers
None
D3344.diff
View Options
diff --git a/web/sidebar/left-layout-aside.react.js b/web/sidebar/left-layout-aside.react.js
--- a/web/sidebar/left-layout-aside.react.js
+++ b/web/sidebar/left-layout-aside.react.js
@@ -2,15 +2,24 @@
import * as React from 'react';
+import { useSelector } from '../redux/redux-utils';
import AppSwitcher from './app-switcher.react';
import CommunityPicker from './community-picker.react';
import css from './left-layout-aside.css';
+import SettingsSwitcher from './settings-switcher.react';
function LeftLayoutAside(): React.Node {
+ const navInfo = useSelector(state => state.navInfo);
+ const navigationPanel = React.useMemo(() => {
+ if (navInfo.tab === 'settings') {
+ return <SettingsSwitcher />;
+ }
+ return <AppSwitcher />;
+ }, [navInfo.tab]);
return (
<aside className={css.container}>
<CommunityPicker />
- <AppSwitcher />
+ {navigationPanel}
</aside>
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:31 PM (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2532131
Default Alt Text
D3344.diff (932 B)
Attached To
Mode
D3344: [web] Render AppSwitcher or SettingsSwitcher depending on the navigation
Attached
Detach File
Event Timeline
Log In to Comment