瀏覽代碼

:fire: 无用的组件

visuddhinanda 2 年之前
父節點
當前提交
e482387270
共有 1 個文件被更改,包括 2 次插入25 次删除
  1. 2 25
      dashboard/src/components/channel/ChapterInChannelList.tsx

+ 2 - 25
dashboard/src/components/channel/ChapterInChannelList.tsx

@@ -3,9 +3,8 @@ import { Progress, Typography } from "antd";
 import { ProTable } from "@ant-design/pro-components";
 import { Link } from "react-router-dom";
 import { Space, Table } from "antd";
-import type { MenuProps } from "antd";
-import { Button, Dropdown, Menu } from "antd";
-import { SearchOutlined, DeleteOutlined } from "@ant-design/icons";
+import { Button, Dropdown } from "antd";
+import { DeleteOutlined } from "@ant-design/icons";
 
 import { get } from "../../request";
 
@@ -13,28 +12,6 @@ import { IChapterListResponse } from "../../components/api/Corpus";
 
 const { Text } = Typography;
 
-const onMenuClick: MenuProps["onClick"] = (e) => {
-  console.log("click", e);
-};
-
-const menu = (
-  <Menu
-    onClick={onMenuClick}
-    items={[
-      {
-        key: "share",
-        label: "分享",
-        icon: <SearchOutlined />,
-      },
-      {
-        key: "delete",
-        label: "删除",
-        icon: <SearchOutlined />,
-      },
-    ]}
-  />
-);
-
 interface IItem {
   sn: number;
   title: string;