Page MenuHomePhabricator

D3344.diff
No OneTemporary

D3344.diff

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

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)

Event Timeline