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 collections = useSelector((state) => state.collections.collections);
const dispatch = useDispatch(); const dispatch = useDispatch();
let asideWidth = 270; let asideWidth = useSelector((state) => state.app.leftSidebarWidth);
let { let {
schema schema
} = useGraphqlSchema('https://api.spacex.land/graphql'); } = useGraphqlSchema('https://api.spacex.land/graphql');

View File

@ -38,12 +38,16 @@ const Sidebar = () => {
<Collections /> <Collections />
</div> </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())} onClick={() => dispatch(toggleLeftMenuBar())}
className="flex flex-col px-1 py-2 cursor-pointer text-gray-500 hover:text-gray-700" className="flex flex-col px-1 py-2 cursor-pointer text-gray-500 hover:text-gray-700"
> >
{!leftMenuBarOpen && <IconChevronsRight size={24} strokeWidth={1.5}/>} {!leftMenuBarOpen && <IconChevronsRight size={24} strokeWidth={1.5}/>}
</div> </div> */}
</div> </div>
</div> </div>
</StyledWrapper> </StyledWrapper>

View File

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