mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-18 04:32:37 +00:00
Rename TablesContext to DiagramContext
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
IconKeyStroked,
|
||||
} from "@douyinfe/semi-icons";
|
||||
import { Popover, Tag, Button, SideSheet } from "@douyinfe/semi-ui";
|
||||
import { useLayout, useSettings, useTables, useSelect } from "../../hooks";
|
||||
import { useLayout, useSettings, useDiagram, useSelect } from "../../hooks";
|
||||
import TableInfo from "../EditorSidePanel/TablesTab/TableInfo";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function Table(props) {
|
||||
setLinkingLine,
|
||||
} = props;
|
||||
const { layout } = useLayout();
|
||||
const { deleteTable, deleteField } = useTables();
|
||||
const { deleteTable, deleteField } = useDiagram();
|
||||
const { settings } = useSettings();
|
||||
const { t } = useTranslation();
|
||||
const { selectedElement, setSelectedElement } = useSelect();
|
||||
|
Reference in New Issue
Block a user