diff --git a/src/client/app.jsx b/src/client/app.jsx index 3b8182a..8e16423 100644 --- a/src/client/app.jsx +++ b/src/client/app.jsx @@ -12,6 +12,8 @@ import Sidebar from './sidebar'; import SidebarIcons from './sidebar-icons'; import { activeResourceUriSelector, + activeSidebarIndexSelector, + isSidebarExpandedSelector, resourceUrisSelector, } from './state'; import {all as allTypeRenderers} from './type-renderers.scwp'; @@ -24,9 +26,9 @@ const typeRenderMap = () => Object.values(allTypeRenderers()).reduce((r, M) => { const App = () => { const [typeRenderers] = useState(typeRenderMap()); const activeResourceUri = useSelector(activeResourceUriSelector); + const activeSidebarIndex = useSelector(activeSidebarIndexSelector); + const isSidebarExpanded = useSelector(isSidebarExpandedSelector); const resourceUris = useSelector(resourceUrisSelector); - const [activeSidebar, setActiveSidebar] = useState(0); - const [isSidebarExpanded, setIsSidebarExpanded] = useState(true); return (
@@ -35,8 +37,8 @@ const App = () => { className="sidebar-icons-wrapper pane" >
// tags it will allow on a page options.singleton || (options.singleton = isOldIE()), // By default, add