setSelectedTemplateId(0)}>
-
-
-
-
-
+
+
+
} block onClick={addArea}>
{t("add_area")}
-
-
+
+
{areas.length <= 0 ? (
-
-
-
- setSelectedElement((prev) => ({
- ...prev,
- id: parseInt(activeKey),
- }))
- }
- />
-
-
+
+
+ setSelectedElement((prev) => ({
+ ...prev,
+ id: parseInt(activeKey),
+ }))
+ }
+ />
+
} block onClick={() => addNote()}>
{t("add_note")}
-
-
+
+
{notes.length <= 0 ? (
) : (
diff --git a/src/components/EditorSidePanel/TablesTab/TableInfo.jsx b/src/components/EditorSidePanel/TablesTab/TableInfo.jsx
index b23a16e..63bf392 100644
--- a/src/components/EditorSidePanel/TablesTab/TableInfo.jsx
+++ b/src/components/EditorSidePanel/TablesTab/TableInfo.jsx
@@ -1,8 +1,6 @@
import { useState } from "react";
import {
Collapse,
- Row,
- Col,
Input,
TextArea,
Button,
@@ -210,8 +208,8 @@ export default function TableInfo({ data }) {
-
-
+
+
@@ -263,12 +261,12 @@ export default function TableInfo({ data }) {
showArrow
>
-
-
+
+
-
-
-
-
}
type="danger"
onClick={() => deleteTable(data.id)}
/>
-
-
+
+
);
}
diff --git a/src/components/EditorSidePanel/TablesTab/TablesTab.jsx b/src/components/EditorSidePanel/TablesTab/TablesTab.jsx
index 113c35d..47e99cd 100644
--- a/src/components/EditorSidePanel/TablesTab/TablesTab.jsx
+++ b/src/components/EditorSidePanel/TablesTab/TablesTab.jsx
@@ -1,4 +1,4 @@
-import { Collapse, Row, Col, Button } from "@douyinfe/semi-ui";
+import { Collapse, Button } from "@douyinfe/semi-ui";
import { IconPlus } from "@douyinfe/semi-icons";
import { useSelect, useTables } from "../../../hooks";
import { ObjectType } from "../../../data/constants";
@@ -14,16 +14,14 @@ export default function TablesTab() {
return (
<>
-
-
-
-
-
+
+
+
} block onClick={() => addTable()}>
{t("add_table")}
-
-
+
+
{tables.length === 0 ? (
) : (
diff --git a/src/components/EditorSidePanel/TypesTab/TypesTab.jsx b/src/components/EditorSidePanel/TypesTab/TypesTab.jsx
index aee15b2..aec0701 100644
--- a/src/components/EditorSidePanel/TypesTab/TypesTab.jsx
+++ b/src/components/EditorSidePanel/TypesTab/TypesTab.jsx
@@ -1,4 +1,4 @@
-import { Collapse, Row, Col, Button, Popover } from "@douyinfe/semi-ui";
+import { Collapse, Button, Popover } from "@douyinfe/semi-ui";
import { IconPlus, IconInfoCircle } from "@douyinfe/semi-icons";
import { useSelect, useTypes } from "../../../hooks";
import { ObjectType } from "../../../data/constants";
@@ -14,33 +14,29 @@ export default function TypesTab() {
return (
<>
-
-
-
-
-
+
+
+
} block onClick={() => addType()}>
{t("add_type")}
-
-
-
- {t("types_info")
- .split("\n")
- .map((line, index) => (
- {line}
- ))}
-
- }
- showArrow
- position="rightTop"
- >
-
} />
-
-
-
+
+
+ {t("types_info")
+ .split("\n")
+ .map((line, index) => (
+ {line}
+ ))}
+
+ }
+ showArrow
+ position="rightTop"
+ >
+