mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Fix imports for hooks
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
import { useState } from "react";
|
||||
import { Action, ObjectType, noteThemes, Tab, State } from "../../data/constants";
|
||||
import {
|
||||
Action,
|
||||
ObjectType,
|
||||
Tab,
|
||||
State,
|
||||
noteThemes,
|
||||
} from "../../data/constants";
|
||||
import { Input, Button, Popover, Toast } from "@douyinfe/semi-ui";
|
||||
import {
|
||||
IconEdit,
|
||||
IconDeleteStroked,
|
||||
IconCheckboxTick,
|
||||
} from "@douyinfe/semi-icons";
|
||||
import useLayout from "../../hooks/useLayout";
|
||||
import useUndoRedo from "../../hooks/useUndoRedo";
|
||||
import useSelect from "../../hooks/useSelect";
|
||||
import useNotes from "../../hooks/useNotes";
|
||||
import useSaveState from "../../hooks/useSaveState";
|
||||
import {
|
||||
useLayout,
|
||||
useUndoRedo,
|
||||
useSelect,
|
||||
useNotes,
|
||||
useSaveState,
|
||||
} from "../../hooks";
|
||||
|
||||
export default function Note({ data, onMouseDown }) {
|
||||
const w = 180;
|
||||
|
||||
@@ -32,12 +32,14 @@ import {
|
||||
Toast,
|
||||
} from "@douyinfe/semi-ui";
|
||||
import { getSize, hasCheck, hasPrecision, isSized } from "../../utils/toSQL";
|
||||
import useLayout from "../../hooks/useLayout";
|
||||
import useSettings from "../../hooks/useSettings";
|
||||
import useUndoRedo from "../../hooks/useUndoRedo";
|
||||
import useTables from "../../hooks/useTables";
|
||||
import useSelect from "../../hooks/useSelect";
|
||||
import useTypes from "../../hooks/useTypes";
|
||||
import {
|
||||
useLayout,
|
||||
useSettings,
|
||||
useUndoRedo,
|
||||
useTables,
|
||||
useSelect,
|
||||
useTypes,
|
||||
} from "../../hooks";
|
||||
|
||||
export default function Table(props) {
|
||||
const [hoveredField, setHoveredField] = useState(-1);
|
||||
|
||||
Reference in New Issue
Block a user