mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
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 dispatch = useDispatch();
|
||||
|
||||
let asideWidth = 270;
|
||||
let asideWidth = useSelector((state) => state.app.leftSidebarWidth);
|
||||
let {
|
||||
schema
|
||||
} = useGraphqlSchema('https://api.spacex.land/graphql');
|
||||
|
@ -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>
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user