mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-21 15:24:51 +00:00
Abstract LayoutContext
This commit is contained in:
@@ -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 },
|
||||
|
Reference in New Issue
Block a user