chore: sidebar deprecated

This commit is contained in:
Anoop M D 2022-03-21 00:03:03 +05:30
parent f2925022e8
commit 81b88e964f
3 changed files with 9 additions and 5 deletions

View File

@ -22,7 +22,7 @@ const RequestTabPanel = () => {
const collections = useSelector((state) => state.collections.collections);
const dispatch = useDispatch();
let asideWidth = 270;
let asideWidth = useSelector((state) => state.app.leftSidebarWidth);
let {
schema
} = useGraphqlSchema('https://api.spacex.land/graphql');

View File

@ -38,12 +38,16 @@ const Sidebar = () => {
<Collections />
</div>
<div
{/*
Sidebar is deprecated as we shift to the approach for storing collections as a file tree
on the filesystem itself
*/}
{/* <div
onClick={() => dispatch(toggleLeftMenuBar())}
className="flex flex-col px-1 py-2 cursor-pointer text-gray-500 hover:text-gray-700"
>
{!leftMenuBarOpen && <IconChevronsRight size={24} strokeWidth={1.5}/>}
</div>
</div> */}
</div>
</div>
</StyledWrapper>

View File

@ -2,8 +2,8 @@ import { createSlice } from '@reduxjs/toolkit'
const initialState = {
idbConnectionReady: false,
leftMenuBarOpen: true,
leftSidebarWidth: 270
leftMenuBarOpen: false,
leftSidebarWidth: 222
};
export const appSlice = createSlice({