Abstract LayoutContext

This commit is contained in:
1ilit
2024-03-09 19:42:09 +02:00
parent c9ad695abb
commit 610e2fa5c5
12 changed files with 77 additions and 27 deletions

View File

@@ -4,14 +4,15 @@ import TableOverview from "./TableOverview";
import ReferenceOverview from "./ReferenceOverview";
import AreaOverview from "./AreaOverview";
import { Tab } from "../data/data";
import { LayoutContext, TabContext } from "../pages/Editor";
import { TabContext } from "../pages/Editor";
import NotesOverview from "./NotesOverview";
import Issues from "./Issues";
import TypesOverview from "./TypesOverview";
import useLayout from "../hooks/useLayout";
const SidePanel = (props) => {
const { tab, setTab } = useContext(TabContext);
const { layout } = useContext(LayoutContext);
const { layout } = useLayout();
const tabList = [
{ tab: "Tables", itemKey: Tab.tables },