forked from extern/bruno
chore: sidebar deprecated
This commit is contained in:
parent
f2925022e8
commit
81b88e964f
@ -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');
|
||||||
|
@ -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>
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user