Rename TablesContext to DiagramContext

This commit is contained in:
1ilit
2024-07-04 23:18:20 +03:00
parent 3b1af3772e
commit 9b606114df
24 changed files with 52 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
import { Tabs, TabPane } from "@douyinfe/semi-ui";
import { Tab } from "../../data/constants";
import { useLayout, useSelect, useTables } from "../../hooks";
import { useLayout, useSelect, useDiagram } from "../../hooks";
import RelationshipsTab from "./RelationshipsTab/RelationshipsTab";
import TypesTab from "./TypesTab/TypesTab";
import Issues from "./Issues";
@@ -15,7 +15,7 @@ import EnumsTab from "./EnumsTab/EnumsTab";
export default function SidePanel({ width, resize, setResize }) {
const { layout } = useLayout();
const { selectedElement, setSelectedElement } = useSelect();
const { database } = useTables();
const { database } = useDiagram();
const { t } = useTranslation();
const tabList = useMemo(() => {